|
|||||||
|
|||||||
|
|||||||
|
Home
|
| D7 | D6 | D5 | D4 | D3 | D2 | D1 | D0 |
| SC1 | SC0 | RW1 | RW0 | M2 | M1 | M0 | BCD |
| SC1 | SC0 | |
| 0 | 0 | Select Counter 0 |
| 0 | 1 | Select Counter 1 |
| 1 | 0 | Select Counter 2 |
| 1 | 1 | Read-Back Command |
| RW1 | RW0 | |
| 0 | 0 | Counter Latch Command |
| 0 | 1 | Read/Write LSB only |
| 1 | 0 | Read/Write MSB only |
| 1 | 1 | Read/Write LSB first, then MSB |
| M2 | M1 | M0 | |
| 0 | 0 | 0 | Mode 0 |
| 0 | 0 | 1 | Mode 1 |
| X | 1 | 0 | Mode 2 |
| X | 1 | 1 | Mode 3 |
| 1 | 0 | 0 | Mode 4 |
| 1 | 0 | 1 | Mode 5 |
| BCD | |
| 0 | Binary Counter 16-bits |
| 1 | BCD Counter (4 Decades) |

Internal Counter Block Diagram
These three functional blocks are identical in operation, so only a single Counter will be described. The internal block diagram of a single counter is shown in the Figure above. The Counters are fully independent. Each Counter may operate in a different Mode.
This block controls the 16-bit counter for all counting modes and the Null flag of the counter.
The width of the data bus is 8 bits, and the counter is 16 bits. The Upper/Lower Byte Controller allows one 8-bit Counter Register, MSB or LSB, to be loaded one at a time from the internal bus. If the Counter is programmed for two-byte read/write mode, this block will control which data byte will be read at the next read cycle.
There are two 8-bit registers called CRM and CRL. Both are normally referred to as one unit and called just CR. When a new count is written to the Counter, the count is stored in the CR and later transferred to the CE16. At the rising-edge of WRN, it will write data to the register. One register at a time will be allowed to be loaded from the in-ternal bus. After both registers have been loaded, both bytes are transferred to the CE16 simultaneously. CRM and CRL are cleared when the Counter is programmed.
Note that the CE16 can’t be written into; whenever a count is written, it is written into the CR.
This block contains a 16-bit Binary or BCD presettable synchronous down counter.
The 8-bit Status Register contains the Control Word Regis-ter, the status of the output and null count flag. When there is a Read-Back Command with STATUSN bit enabled and its counter selected, it will latch present status information into Status Register. The status format is shown below:
| D7 | D6 | D5 | D4 | D3 | D2 | D1 | D0 |
| Out | Null | Count | RW1 | RW0 | M2 | M1 | BCD |
Bits D5 through D0 contain the counter’s programmed Mode. Output bit D7 contains the current state of the OUT pin. This allows the user to monitor the counter’s output via software. Null Count bit D6 indicates when the last count written to the counter register has been loaded into the counting element (CE16). The exact time this happens de-pends on the Mode of the counter.
At the time of receiving the Counter Latch Command or Read-Back Command with COUNTN bit enabled, the selected counter’s output latch latches the count. This count is held in the latch until the CPU reads it or until the counter is reprogrammed. The count is then unlatched and the OL returns to be transparent of counting element outputs. The count must be read according to the programmed format. The Counter Latch Command is ignored before the count is read.
If both the count and the status of a counter are latched, the first read operation of that counter will return the latched status, regardless of which was latched first. The next one or two reads (depending on whether the counter is programmed for one or two byte counts) returns the latched count. Subsequent reads return the unlatched count. If the counter is programmed for two byte counts, it will read the LSB first then the MSB at the next read cycle.
C8254 reference designs have been evaluated in a variety of technologies.
The core as delivered is warranted against defects for three years from purchase. Thirty days of phone and email technical support are included, starting with the first interaction. Additional maintenance and support options are available.
The C8254 core’s functionality was verified by means of a proprietary hardware modeler. The same stimulus was ap-plied to a hardware model that contained the original Intel 82C54 chip, and the results compared with the core’s simulation output.
The core is available in ASIC (synthesizable HDL) and FPGA (netlist) forms, and includes everything required for successful implementation:
版权所有 上海冠讯科技有限公司 | 管理进入 | |