The Real Time Clock
The Real Time Clock
it has been given. The RTC is the other half of the chip that has the CMOS memory and can
be thought of as a set of counters.
The first one counts from 0 to 9 and then tells the next counter (the 10's place counter) to count
up once. The first counter then starts counting again and counts from 0 to 9 and again telling
the next higher counter (the 10's counter) to set its counter up one more (now at 2), and so on.
Now the 10's place counter (which is counting 10's of seconds) only counts from 0 to 5 and
then it tells the minute counter to do its increment, which will then start its journey from 0 to
9 and so on.
Of course the next counter after the minute counter is the minute 10's place counter, which
also counts from 0 to 5 and then tells the hours counter to count once etc, etc.
The process goes on through the hour 10's place as it counts from 0 to 2, the day counter-which
goes from 1 to 30, or 31, or sometimes 28 or maybe 29 depending on what the rules for which
month has how many days and which years have 29 day Februarys. The month counter
proceeds to go from 1 to 12, and then of course the year counter starts its journey with the
good old 0 to 9, and finally we have the year 10's counter again with values going from 0 to 9.
DMA characteristics:
2. DMA controller requests CPU go on hold by pulling CPU's HRQ line high
1. the CPU sends a signal to initiate a disk transfer through the I/O interface
2. the CPU sends the starting address of the block
3. the disk driver reads the starting address, and reads a block of data and puts it in its own
buffer
4. the disk driver sends a interrupt signal to the CUP
5. the CPU reads the datum into its registers (accumulator)
6. the CPU checks if there is more to transfer, if yes, the CPU signals the disk driver to do so
meanwhile
7. the CPU transfer the datum from register to memory and increments its pointer to memory
8. The DMA controller takes care of the last few steps (from signaling disk to transfer) .A
➢ It has 27 registers, 7 of which are system-wide registers and 5 for each channels.
• DMA total
• DMA remaining
• Processor has HOLD/HOLD Acknowledge lines to interact with 8237
➢ DMAC can gain control of ISA bus by asserting HOLD
➢ Processor acknowledges with HLDA
➢ Set at POST
1. Single - One transfer at a time, allow processor access to the bus between transfers
2. Block - Transfer all data, do not allow processor access to the bus (may cause problems
with memory refresh)
4. Cascade - allow a slave controller use of the DMAC (used for DRQ4)
7|P a g e
Size of transfer
❖ Master can only generate word-sized transfers
8|P a g e