Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
boards:ecb:zilog-peripherals [2019/08/18 19:17] – Initial import from Wayback Machine boards:ecb:zilog-peripherals [2026/06/15 12:51] (current) – external edit 127.0.0.1
Line 1: Line 1:
 /* Imported from Wayback Machine /* Imported from Wayback Machine
-   Original URL : https://www.retrobrewcomputers.org/doku.php?id=boards:ecb:zilog-peripherals +   Original URL : https://retrobrewcomputers.org/doku.php?id=boards:ecb:zilog-peripherals 
-   Snapshot date: 2019-08-18+   Snapshot date: 2021-10-24
    Generator    : wayback-archiver    Generator    : wayback-archiver
 */ */
Line 189: Line 189:
 Testing the Z80-CTC Testing the Z80-CTC
  
-On X6 put a jumper on pins 2-4 to put the 153600Hz signal to channel 0. Using DBGMON send the following to the Z80-CTC. (Text in blue is what you type)+On X6 put a jumper on pins 2-4 to put the 153600Hz signal to channel 0. Using DBGMON send the following to the Z80-CTC. (Text in <font inherit/inherit;;#000000;;inherit>blue is what you type)</font>
  
-''%%>%%''''%%O B0 47%%''\\ +''%%><font inherit/inherit;;#2980b9;;inherit>O B0 47</font>%%''\\ 
-''%%>%%''''%%O B0 00%%''\\ +''%%><font inherit/inherit;;#2980b9;;inherit>O B0 00</font>%%''\\ 
-''%%>%%''''%%O B1 27%%''\\ +''%%><font inherit/inherit;;#2980b9;;inherit>O B1 27</font>%%''\\ 
-''%%>%%''''%%O B1 00%%''+''%%><font inherit/inherit;;#2980b9;;inherit>O B1 00</font>%%''
  
 The first command sets channel 0 as a counter, the second sets the count value to 256. The output on pin 7 of the Z80-CTC should be 600Hz (153600 / 256). The third and fourth commands set channel 1 as a timer which divides the system clock by 65536. Given my setup has the CPU running at 4MHz the output on pin 8 of the Z80-CTC should be a bit over 61Hz (4000000/65536). The outputs are not a square wave but a series of pulses and were too short to be picked up by my ancient logic probe. However they measured correctly on my frequency counter. An oscilloscope would be handy as well. The first command sets channel 0 as a counter, the second sets the count value to 256. The output on pin 7 of the Z80-CTC should be 600Hz (153600 / 256). The third and fourth commands set channel 1 as a timer which divides the system clock by 65536. Given my setup has the CPU running at 4MHz the output on pin 8 of the Z80-CTC should be a bit over 61Hz (4000000/65536). The outputs are not a square wave but a series of pulses and were too short to be picked up by my ancient logic probe. However they measured correctly on my frequency counter. An oscilloscope would be handy as well.
Line 204: Line 204:
  
 \\ \\
-''%%>%%''''%%O B6 04%%'' select write register 4\\ +''%%><font inherit/inherit;;#2980b9;;inherit>O B6 04</font>%%'' select write register 4\\ 
-''%%>%%''''%%O B6 46%%'' x16 clock, 1 stop, no parity\\ +''%%><font inherit/inherit;;#2980b9;;inherit>O B6 46</font>%%'' x16 clock, 1 stop, no parity\\ 
-''%%>%%''''%%O B6 01%%'' select write register 1\\ +''%%><font inherit/inherit;;#2980b9;;inherit>O B6 01</font>%%'' select write register 1\\ 
-''%%>%%''''%%O B6 04%%'' disable interrupts\\ +''%%><font inherit/inherit;;#2980b9;;inherit>O B6 04</font>%%'' disable interrupts\\ 
-''%%>%%''''%%O B6 03%%'' select write register 3\\ +''%%><font inherit/inherit;;#2980b9;;inherit>O B6 03</font>%%'' select write register 3\\ 
-''%%>%%''''%%O B6 C1%%'' 8 bits, no auto enables, receiver enable\\ +''%%><font inherit/inherit;;#2980b9;;inherit>O B6 C1</font>%%'' 8 bits, no auto enables, receiver enable\\ 
-''%%>%%''''%%O B6 05%%'' select write register 5\\ +''%%><font inherit/inherit;;#2980b9;;inherit>O B6 05</font>%%'' select write register 5\\ 
-''%%>%%''''%%O B6 EA%%'' DTR on, RTS on, enable transmit+''%%><font inherit/inherit;;#2980b9;;inherit>O B6 EA</font>%%'' DTR on, RTS on, enable transmit
  
 \\ \\
 Next check the status by Next check the status by
  
-''%%>%%''''%%I B6%%''+''%%><font inherit/inherit;;#2980b9;;inherit>I B6</font>%%''
  
 Bit 6 is set after a chip reset and is cleared with Bit 6 is set after a chip reset and is cleared with
  
-''%%>%%''''%%O B6 C0%%''+''%%><font inherit/inherit;;#2980b9;;inherit>O B6 C0</font>%%''
  
 If bit 2 (Tx pending) is set then we're ready to transmit, so If bit 2 (Tx pending) is set then we're ready to transmit, so
  
-''%%>%%''''%%O B4 40%%''+''%%><font inherit/inherit;;#2980b9;;inherit>O B4 40</font>%%''
  
 will send the character 40 (@) to the transmit buffer. Then read status and bit 0 should be set to indicate a character has been received. Read it with will send the character 40 (@) to the transmit buffer. Then read status and bit 0 should be set to indicate a character has been received. Read it with
  
-''%%>%%''''%%I B4%%''+''%%><font inherit/inherit;;#2980b9;;inherit>I B4</font>%%''
  
 and the result should be 40. If not then try again as it could be leftover crud in the receive buffer.\\ and the result should be 40. If not then try again as it could be leftover crud in the receive buffer.\\
boards/ecb/zilog-peripherals.1566155869.txt.gz · Last modified: (external edit)
CC Attribution-Share Alike 4.0 International
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0