Keyboard Shortcuts
Likes
- Z80MC
- Messages
Search
Re: Hi Z80 freaks!!
Z80,
Been developing and using the Z80 since I got my Northstar Z80 cpu for Altair in early 1977 at that time a 4mhz part or easily twice the 8080 speed. I have not less than... 5 Z80 s100 systems?? 3 Z80 SBCs? (amproLB+ is still in regular use). 12 VT180 (two complete and 10 Z80 boards which ? ? ?are complete systems sans terminal).? The VT180 ? ? ?was a VT100 terminal with a serial connection to a ? ? ?Z80 system floppy and IO complete and 64K of ram. ? ? ?The only shared thing was power supply, case and ? ? ?used the VT100 power on reset signal. 2 TRS80 (early) And many SBCs of my design using Z80. I also have a later set of systems based on Z180 (z80 with integrated peripherals) and Z280 a really extended Z80 with 16 bit bus. Its a versatile CPU that had dominated the 8bit world? and the only other that had a significant presence was the 6502 (AppleII and friends).? ?Both have demonstrated extended life compared to many.? ?They are the two that still appear the most besides 8085 and 1802.? Other well knowns that seem to have disappeared are?6800, TI9900 (not the console but the CPU), Signetics 2650.? What helped the Z80 stay alive was speed by '81 6mhz was delivered and a year or two later 8mhz parts.? Now its possible to find 10 and even 20mhz parts. It had staying power because of speed,? instruction set and? peripherals (and could use 8080/8085 supporting parts as well). Its instruction set including all the 8080 have a large selection of 16 bit and extended instructions with options for increment or decrement and repeat.? My favorite is JP NZ,target (also seen as DJNZ target).? There are three instruction mnemonic sets in use, official Zilog, one I call Alternate-80 extended, and TDL.? The latter two use the format most common to 8080/8085. As to compatibility with 8080, there were a few programs that behaved wrong on Z80 and that was early.? Later compatible 8080 code noted the small differences in flag use and avoided those traps.? Smaller systems suffered that but it was both flag and IO devices used that caused code uniqueness that made code incompatible.? ?Most of the CP/M 80 applications was compatible 8080 unless marked as Z80 required [used extended instructions].? Generally 8080 was binary compatible with Z80 but and only in carefully crafted cases the reverse by avoiding the z80 unique instructions. Comment to date I've not found any z80 that didn't have the "unsupported instructions".? Same for the 8085 "hidden instructions". By that point in time semiconductor makers understood the need to be completely compatible as in identical. Generally a CP/M user, either CP/M2.2 flavor or Zrdos.? I have on S100? NorthStar? Horizons that run NSdos a primitive tag and bag disk monitor but one of the early mini-floppy (5.25") disk systems as part of the main box.? There is also Uzi-Z80 a unix look alike. Most of the other OSs are in the rare or platform unique l ike TRSdos/Ldos and MSX.? There are a large set of real time OSs for Z80 as well. For me its 44 years of z80 and still running. Allison |
Re: Hi Z80 freaks!!
On Mon, May 10, 2021 at 01:18 PM, Lee Hart wrote:
The features of the Z80 that I really like are:Hi Lee, Wow cool list of things to keep in mind. I did not know about dyno-ram refresh ability. I am still going threw the docs and filling up my parts list for the Z80MC. Wow a really awesome design here. I love this board as well as the SIO too. I have been updating some of my old (and new) info with some guys on youtube as well. I found one bright fellow that talks about the z80 called "Advent Of Computing". Fun guy to listen to, but I disagree with him about the words "micro computer" that we talk about. I call them all micros and I always will, lol |
Re: Hi Z80 freaks!!
joshbensadon via groups.io wrote:
The "zed 80" was quite a successful processor. It's line up ofThe Z80 was amazing in part because it was such an early microprocessor. It was a huge step ahead of its contemporaries (like the 8080, 6502, 6800, etc.) The others rushed their micros to market; Zilog took more time to get it "right". It's an excellent example of "if you spend just a little more time, you can make it a lot better." That's one reason the Z80 is still produced today; 45 years later! The features of the Z80 that I really like are: - simple hardware interface: single 5v supply, simple clock, logical easy-to-use address, data, and control signals. - included dynamic RAM refresh (important then, less so today). - rich instruction set: not just the basics, but also relative jumps, 16-bit operations, block moves, indexed addressing, etc. - plenty of registers, including a duplicate set that can be swapped with a single fast instruction. - an excellent fast, vectored interrupt structure. Lee Hart -- A designer knows he has achieved perfection not when there is nothing left to add, but when there is nothing left to take away. -- Antoine de Saint Exupery -- Lee Hart, 814 8th Ave N, Sartell MN 56377, www.sunrise-ev.com -- This email has been checked for viruses by Avast antivirus software. |
Re: Hi Z80 freaks!!
saturn5tony
On Mon, May 10, 2021 at 12:29 PM, joshbensadon wrote:
I would hang out with my friend Walter, and we would bring out some BYTE or old Popular Electronics magazines and just read through articles, pointing out some interesting hind sight observations.? I'm looking forward to my retirement years!Hi Josh (and Bill) Oh so true about looking at old Bytes and PE. I have been reading them every day for quite a few years now, as well as RE. Its fun to see where we are now compared to the late 70's, 80's. I find myself seeing what really happened within a different view now. You would think you new everything at 20 but when you look back, I missed so much fun for the sake of taking on any job to pay the bills.? I think I live on this site now,...?? with the others favs in there too. So true about?archive.org Bill. The net is full of great resources now than we have ever imagined. -Tony |
Re: Hi Z80 freaks!!
Even if you don't have the brain power to concentrate on this stuff, the books are still fun to read as they demonstrate examples.? A few times, I would hang out with my friend Walter, and we would bring out some BYTE or old Popular Electronics magazines and just read through articles, pointing out some interesting hind sight observations.? I'm looking forward to my retirement years!
On Monday, May 10, 2021, 10:46:16 a.m. EDT, Bill in OKC too via groups.io <wmrmeyers@...> wrote:
You can find a lot of them as PDF files on archive.org, along with a lot of the other classic computer & programming books. Zak's, Osbourne, and others,? tech manuals from the manufacturers, etc. I don't know if I have the brainpower to actually use them anymore, but have downloaded a bunch of them myself. Bill in OKC William R. Meyers, MSgt, USAF(Ret.) A human being should be able to change a diaper, plan an invasion, butcher a hog, conn a ship, design a building, write a sonnet, balance accounts, build a wall, set a bone, comfort the dying, take orders, give orders, cooperate, act alone, solve equations, analyze a new problem, pitch manure, program a computer, cook a tasty meal, fight efficiently, die gallantly. Specialization is for insects. LAZARUS LONG (Robert A. Heinlein)
On Monday, May 10, 2021, 08:49:42 AM CDT, saturn5tony via groups.io <saturn5tony@...> wrote:
On Sun, May 9, 2021 at 10:28 PM, joshbensadon wrote: Hi Josh, I dont remember that instruction, but I know it had quite a few more that were better than the old 8080 as well as an improved register set. I know that the HW took the 3 power supplies from 3 down to 5V only. Really great for that time. IIRC I think that is why Intel came out with the 8085? Wow so many years ago, I am mixing up what they did back then. As I read frm down below, I also mixed up the company names as well. LOL!! I think I was on the 6800 - 6502 path in my mind, not on the 8080 - Z80 path. So many things happened back then. Now so little memory left of what happened as well I believe. HEHE--thank God I am not a writer of computer history and such! lol As far as books, all I have left relating to the Z80 was the one I got back in the early 80's called "the Z80 microcomputer handbook" by Wlliam Barden jr. I read a bit of it back then when were designing a computer system for a new product that were making but went to the 8048, 8031 and other MCS51 stuff for our final design. I was not into home pc's back then so much for my career but into more controller applications that we were doing. MCS51 rocked the world for us. Home use I went from 1802 and 6502 stuff. Why, I really have no idea. I guess I just liked them all. |
Re: Hi Z80 freaks!!
You can find a lot of them as PDF files on archive.org, along with a lot of the other classic computer & programming books. Zak's, Osbourne, and others,? tech manuals from the manufacturers, etc. I don't know if I have the brainpower to actually use them anymore, but have downloaded a bunch of them myself. Bill in OKC William R. Meyers, MSgt, USAF(Ret.) A human being should be able to change a diaper, plan an invasion, butcher a hog, conn a ship, design a building, write a sonnet, balance accounts, build a wall, set a bone, comfort the dying, take orders, give orders, cooperate, act alone, solve equations, analyze a new problem, pitch manure, program a computer, cook a tasty meal, fight efficiently, die gallantly. Specialization is for insects. LAZARUS LONG (Robert A. Heinlein)
On Monday, May 10, 2021, 08:49:42 AM CDT, saturn5tony via groups.io <saturn5tony@...> wrote:
On Sun, May 9, 2021 at 10:28 PM, joshbensadon wrote: Hi Josh, I dont remember that instruction, but I know it had quite a few more that were better than the old 8080 as well as an improved register set. I know that the HW took the 3 power supplies from 3 down to 5V only. Really great for that time. IIRC I think that is why Intel came out with the 8085? Wow so many years ago, I am mixing up what they did back then. As I read frm down below, I also mixed up the company names as well. LOL!! I think I was on the 6800 - 6502 path in my mind, not on the 8080 - Z80 path. So many things happened back then. Now so little memory left of what happened as well I believe. HEHE--thank God I am not a writer of computer history and such! lol As far as books, all I have left relating to the Z80 was the one I got back in the early 80's called "the Z80 microcomputer handbook" by Wlliam Barden jr. I read a bit of it back then when were designing a computer system for a new product that were making but went to the 8048, 8031 and other MCS51 stuff for our final design. I was not into home pc's back then so much for my career but into more controller applications that we were doing. MCS51 rocked the world for us. Home use I went from 1802 and 6502 stuff. Why, I really have no idea. I guess I just liked them all. |
Re: Hi Z80 freaks!!
saturn5tony
On Sun, May 9, 2021 at 10:28 PM, joshbensadon wrote:
Hi Josh, I dont remember that instruction, but I know it had quite a few more that were better than the old 8080 as well as an improved register set. I know that the HW took the 3 power supplies from 3 down to 5V only. Really great for that time. IIRC I think that is why Intel came out with the 8085? Wow so many years ago, I am mixing up what they did back then. As I read frm down below, I also mixed up the company names as well. LOL!! I think I was on the 6800 - 6502 path in my mind, not on the 8080 - Z80 path. So many things happened back then. Now so little memory left of what happened as well I believe. HEHE--thank God I am not a writer of computer history and such! lol As far as books, all I have left relating to the Z80 was the one I got back in the early 80's called "the Z80 microcomputer handbook" by Wlliam Barden jr. I read a bit of it back then when were designing a computer system for a new product that were making but went to the 8048, 8031 and other MCS51 stuff for our final design. I was not into home pc's back then so much for my career but into more controller applications that we were doing. MCS51 rocked the world for us. Home use I went from 1802 and 6502 stuff. Why, I really have no idea. I guess I just liked them all. |
Re: Hi Z80 freaks!!
You can only truly appreciate the Z80 when you start using the Repetitive Copy and Compare instructions.? With a single instruction, you can move a block of 64K as fast as the memory read/write cycles will permit.? Of course, that's the whole memory map and while that might be a useful thing (say your hardware can bank switch between reads and writes?)? it's more likely to do smaller chunks of data.? The speed increase to move blocks of data like this is really significant! Are you reading any books on the Zed-80?
On Sunday, May 9, 2021, 10:14:08 a.m. EDT, saturn5tony via groups.io <saturn5tony@...> wrote:
On Sun, May 9, 2021 at 08:26 AM, joshbensadon wrote: Good luck on your Z80MC build.? The "zed 80" was quite a successful processor.?Hi Josh, Thank you so much for approving me. Yea, I did not really do enough with that processor years ago (so much changed afterwards as I am sure you all know) but I did see how many systems were created by it and did read a small bit about its architecture. A truly awesome micro. It will be so much fun to now get back into it. See you online! -Tony |
Re: Hi Z80 freaks!!
saturn5tony
On Sun, May 9, 2021 at 08:26 AM, joshbensadon wrote:
Good luck on your Z80MC build.? The "zed 80" was quite a successful processor.?Hi Josh, Thank you so much for approving me. Yea, I did not really do enough with that processor years ago (so much changed afterwards as I am sure you all know) but I did see how many systems were created by it and did read a small bit about its architecture. A truly awesome micro. It will be so much fun to now get back into it. See you online! -Tony |
Re: Hi Z80 freaks!!
Hi Tony, Good luck on your Z80MC build.? The "zed 80" was quite a successful processor.? It's line up of peripheral chips made it very much a dream machine.? The fact that it had all these great registers and was backward compatible with the 8080 (mostly) made it a very interesting solution for new and old systems. Cheers, Josh
On Saturday, May 8, 2021, 07:34:11 p.m. EDT, saturn5tony via groups.io <saturn5tony@...> wrote:
Sorry for the silly joke above. Yea hello guys! Yup.. a new Z80 freak here, lol. Not really a user of the zed 80 other than having a Microsoft Z80 card (that I still have) in my Apple IIe. (apparently Bill wanted 350 bucks for this card!) I am an old developer (turned to sw as of the last few dozen years or so) and one that loved electronics from the 70's and now retired. Also enjoying retro computers of all kind. I have been on the 1802 side for a while here but found out about Lee and his awesome designs for every micro we had .. from back in the day. (Hi Lee) and just bought the Z80MC and in the process of building it. Man I love the LEDs here as well as the IO card. Very cool stuff. So yea I got the SIO card too. Looking to build it soon and having fun with this retro "uC" from the past (cant beat the cool Docs too Lee) and hope I may be able to contribute to this group as well. Please excuse my typing here and there, I have some cognitive issues and hope you wont mind. Thanks for reading and accepting me into the power of what those old ex-motorola guys saw back in those days that we loved so much.? (Note: I am not biased by any micro, I do have a life time appreciation for them all!) Well maybe I am a bit biased on this paper microcomputer.... But I was building an 8008 micro at the time, making some texas towers and thought, hmmm maybe I'll leave it to those that want to learn about them. Did I know about them... NO, could I build one.. yes. LOL, yea Hackaday has a great article about it too. Go Cardiac! So thats my silly bio for the moment, hope to meet you all and lets push some more 1's and 0's around! See ya! Tony |
Hi Z80 freaks!!
saturn5tony
Sorry for the silly joke above. Yea hello guys!
Yup.. a new Z80 freak here, lol. Not really a user of the zed 80 other than having a Microsoft Z80 card (that I still have) in my Apple IIe. (apparently Bill wanted 350 bucks for this card!) I am an old developer (turned to sw as of the last few dozen years or so) and one that loved electronics from the 70's and now retired. Also enjoying retro computers of all kind. I have been on the 1802 side for a while here but found out about Lee and his awesome designs for every micro we had .. from back in the day. (Hi Lee) and just bought the Z80MC and in the process of building it. Man I love the LEDs here as well as the IO card. Very cool stuff. So yea I got the SIO card too. Looking to build it soon and having fun with this retro "uC" from the past (cant beat the cool Docs too Lee) and hope I may be able to contribute to this group as well. Please excuse my typing here and there, I have some cognitive issues and hope you wont mind. Thanks for reading and accepting me into the power of what those old ex-motorola guys saw back in those days that we loved so much.? (Note: I am not biased by any micro, I do have a life time appreciation for them all!) Well maybe I am a bit biased on this paper microcomputer.... But I was building an 8008 micro at the time, making some texas towers and thought, hmmm maybe I'll leave it to those that want to learn about them. Did I know about them... NO, could I build one.. yes. LOL, yea Hackaday has a great article about it too. Go Cardiac! So thats my silly bio for the moment, hope to meet you all and lets push some more 1's and 0's around! See ya! Tony |
Re: SD I/O 1.8MHz resonator
Thank you Josh, this is very useful. Flavio On Sat, 1 May 2021 at 12:07, joshbensadon via <joshbensadon=[email protected]> wrote:
-- Flavio V. S. Zanchi flavio@..."Egal, wie dicht du bist, Goethe war Dichter" -----BEGIN PGP PUBLIC KEY BLOCK----- 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 CTnS5Lv4I+SMxR+KMofgFvz8RT4+ =fbH5 -----END PGP PUBLIC KEY BLOCK----- |
Re: SD I/O 1.8MHz resonator
The 8250 has a coarse divider for baud rate.? 12 works to divide 1,843,200 to 9600 baud because 1843200 / 12 / 16 = 9600 The next divider number is 13 and to get 9600 at that value you would need... X / 13 / 16 = 9600 Solve for X = 1,996,800? ?(so 2Mhz would be pretty decent) 2Mhz gives 9615, = 0.2% error But, as pointed out, 1.8 is available and 1.8432 crystals will also work (adding the loading caps).
On Friday, April 30, 2021, 04:22:10 p.m. EDT, Lee Hart <leeahart@...> wrote:
Zanchius wrote: > I would be comfortable in flipping a byte or two on the EPROM image, I > managed to find a programmer that can burn 27256 chips so that also > wouldn't be an issue. > May I ask which bytes should be changed? Hi Flavio, Download the EPROM source file at <> from the website at <>. In the .ASM or .LST file, search for "LD (ACE_BAUD),A". It occurs in two places. The first one sets the initial baud rate to 9600 (with a 1.8 MHz resonator or 1.8432 crystal). Change the byte at 01AE to whatever is correct for your crystal and desired baud rate. 01A5? 21 80FF??? COLD_START??? LD??? HL,RC_TYPE 01A8? 06 0F??? ??? ??? LD??? B,CS_CLR_LEN 01AA? CD 100C??? ??? ??? CALL??? CLEAR_BLOCK ? ? ? ? ? ? ? ??? ??? ??? ;DB??? 0??? ;(RC_TYPE) ? ? ? ? ? ? ? ??? ??? ??? ;DB??? 0??? ;(RC_SOFT) ? ? ? ? ? ? ? ??? ??? ??? ;DB??? 0??? ;(RC_STEP) ? ? ? ? ? ? ? ??? ??? ??? ;DB??? 0??? ;(RC_CC) ? ? ? ? ? ? ? ??? ??? ??? ;DB??? 0??? ;(RC_HALT) ? ? ? ? ? ? ? ??? ??? ??? ;DB??? 0??? ;(RC_F0) ? ? ? ? ? ? ? ??? ??? ??? ;DB??? 0??? ;(RC_RST0) ? ? ? ? ? ? ? ??? ??? ??? ;DB??? 0??? ;(RC_HARD) ? ? ? ? ? ? ? ??? ??? ??? ;DB??? 0??? ;(RegPtr) ? ? ? ? ? ? ? ??? ??? ??? ;DW??? 0??? ;(ABUSS) ? ? ? ? ? ? ? ??? ??? ??? ;DB??? 0??? ;(IoPtr) ? ? ? ? ? ? ? ??? ??? ??? ;DB??? 0??? ;(RX_ERR_LDRT) ? ? ? ? ? ? ? ??? ??? ??? ;DB??? 0??? ;(RX_ERR_STOP) ? ? ? ? ? ? ? ??? ??? ??? ;DB??? 0??? ;(RX_ERR_OVR) 01AD? 3E 0C? ??? ??? ??? LD??? A,12 <=== this sets 9600 baud! 01AF? 32 8FFF? ? ? ? ? ??? ??? LD??? (ACE_BAUD),A Or, if you're using the Z80-CPU card serial port, you can change the Z80-SIO card baud rate using this call: 080B? CD CA0D? ? ? ? ? PORT_SPEED??? CALL??? PRINTI??? ??? 080E? 0D0A2830 433D3936 ??? ??? DB??? CR,LF,"(0C=9600) BAUD:",EOS 0816? 30302920 42415544 081E? 3A00 0820? 3A 8FFF? ? ? ? ? ??? ??? LD??? A,(ACE_BAUD) 0823? CD F60D? ? ? ? ? ??? ??? CALL??? PUT_BYTE 0826? CD 490D? ? ? ? ? ??? ??? CALL??? SPACE_GET_BYTE 0829? D8? ? ? ? ? ? ? ? ??? ??? RET? C 082A? 32 8FFF? ? ? ? ? ??? ??? LD??? (ACE_BAUD),A 082D? CD F214? ? ? ? ? ??? ??? CALL??? ACE_SET_BAUD 0830? C9? ? ? ? ? ? ? ? ??? ??? RET Hope this helps! Lee -- A designer knows he has achieved perfection not when there is nothing left to add, but when there is nothing left to take away. ? ? ? ? -- Antoine de Saint Exupery -- Lee Hart, 814 8th Ave N, Sartell MN 56377, www.sunrise-ev.com -- This email has been checked for viruses by Avast antivirus software. |
Re: SD I/O 1.8MHz resonator
No, it is very tight on timing so that it can do full duplex bit bang.? But that runs on the 4Mhz Z80.? The 1.8Mhz is for the UART.
On Friday, April 30, 2021, 11:41:09 a.m. EDT, bill rowe <bill_rowe_ottawa@...> wrote:
Josh: does your serial code do autobaud - i forget? If so it would probably be fine.
From: [email protected] <[email protected]> on behalf of Zanchius <flavio@...>
Sent: April 30, 2021 5:45 AM To: [email protected] <[email protected]> Subject: [Z80MC] SD I/O 1.8MHz resonator ?
Good morning all,
This is proving to be another hard to find component, so I got a 2MHz one instead. If I understood correctly there's a direct correlation with the terminal baud rate provided by the UART. Would 200KHz make much diference? Cheers |
Re: SD I/O 1.8MHz resonator
You can order direct from Tayda Electronics, and they *are* stocked (3,988,888 parts claimed).
toggle quoted message
Show quoted text
-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Lee Hart Sent: Friday, April 30, 2021 12:04 PM To: [email protected] Subject: Re: [Z80MC] SD I/O 1.8MHz resonator Zanchius wrote: Good morning all,Hi Flavio, Yes, I'm having trouble getting the 1.8 MHz resonators as well. Mouser quit carrying them, so I bought my last batch from Tayda2009 on ebay. But they seem to have gone out of business. As for the FJN3303 and FJN4303 transistors, I have enough for customers; but shipping to the UK is expensive. The frequency is critical to get the right baud rate. Changing from 1.8 to 2.0 MHz will change the baud rate from 9600 to 1066 baud. It will still work if you can set your Terminal program for such an oddball rate. A better solution is to get a 1.8432 MHz crystal, which is a standard frequency and fairly easy to find. Crystals don't have the internal capacitors, so you'll also need to add two 20pf capacitors, one from each side of the crystal to GND (the schematic in the manual shows these capacitors). Another option is to change the divisor in the 8250 UART. This can compensate for your 2 MHz resonator. But it means changing a byte in the EPROM, and burning another one. Lee -- A designer knows he has achieved perfection not when there is nothing left to add, but when there is nothing left to take away. -- Antoine de Saint Exupery -- Lee Hart, 814 8th Ave N, Sartell MN 56377, www.sunrise-ev.com -- This email has been checked for viruses by Avast antivirus software. |
Re: SD I/O 1.8MHz resonator
Lee, That's brilliant! Thank you for the information. And thank you everyone for your help as well. Now the wait for the boards to arrive... (+_+) Flavio On Fri, 30 Apr 2021, 21:24 Lee Hart, <leeahart@...> wrote: Zanchius wrote: |
Re: SD I/O 1.8MHz resonator
Zanchius wrote:
Humm ... This adds another gremlin in the equation. I'm starting to regret ordering only the PCBs.That will work. 1.8432 MHz hits 9600 baud exactly. The 1.80 MHz resonator is actually 2.4% low (but it works anyway). Lee -- A designer knows he has achieved perfection not when there is nothing left to add, but when there is nothing left to take away. -- Antoine de Saint Exupery -- Lee Hart, 814 8th Ave N, Sartell MN 56377, www.sunrise-ev.com -- This email has been checked for viruses by Avast antivirus software. |
Re: SD I/O 1.8MHz resonator
Zanchius wrote:
I would be comfortable in flipping a byte or two on the EPROM image, I managed to find a programmer that can burn 27256 chips so that also wouldn't be an issue.Hi Flavio, Download the EPROM source file at <> from the website at <>. In the .ASM or .LST file, search for "LD (ACE_BAUD),A". It occurs in two places. The first one sets the initial baud rate to 9600 (with a 1.8 MHz resonator or 1.8432 crystal). Change the byte at 01AE to whatever is correct for your crystal and desired baud rate. 01A5 21 80FF COLD_START LD HL,RC_TYPE 01A8 06 0F LD B,CS_CLR_LEN 01AA CD 100C CALL CLEAR_BLOCK ;DB 0 ;(RC_TYPE) ;DB 0 ;(RC_SOFT) ;DB 0 ;(RC_STEP) ;DB 0 ;(RC_CC) ;DB 0 ;(RC_HALT) ;DB 0 ;(RC_F0) ;DB 0 ;(RC_RST0) ;DB 0 ;(RC_HARD) ;DB 0 ;(RegPtr) ;DW 0 ;(ABUSS) ;DB 0 ;(IoPtr) ;DB 0 ;(RX_ERR_LDRT) ;DB 0 ;(RX_ERR_STOP) ;DB 0 ;(RX_ERR_OVR) 01AD 3E 0C LD A,12 <=== this sets 9600 baud! 01AF 32 8FFF LD (ACE_BAUD),A Or, if you're using the Z80-CPU card serial port, you can change the Z80-SIO card baud rate using this call: 080B CD CA0D PORT_SPEED CALL PRINTI 080E 0D0A2830 433D3936 DB CR,LF,"(0C=9600) BAUD:",EOS 0816 30302920 42415544 081E 3A00 0820 3A 8FFF LD A,(ACE_BAUD) 0823 CD F60D CALL PUT_BYTE 0826 CD 490D CALL SPACE_GET_BYTE 0829 D8 RET C 082A 32 8FFF LD (ACE_BAUD),A 082D CD F214 CALL ACE_SET_BAUD 0830 C9 RET Hope this helps! Lee -- A designer knows he has achieved perfection not when there is nothing left to add, but when there is nothing left to take away. -- Antoine de Saint Exupery -- Lee Hart, 814 8th Ave N, Sartell MN 56377, www.sunrise-ev.com -- This email has been checked for viruses by Avast antivirus software. |
Re: SD I/O 1.8MHz resonator
bill rowe wrote:
Josh: does your serial code do autobaud - i forget? If so it would probably be fine.No; it doesn't autobaud. But there are two serial ports; one on the Z80-CPU board, and another on the Z80-SIO board. The one on the CPU board uses the 4 MHz resonator; so it will still work. It is fixed at 9600 baud; but would be 4800 baud if you used a 2 MHz resonator, or 19200 if you used 8 MHz etc. The 8250 UART on the Z80-SIO board uses the 1.8 MHz resonator. 18.432 MHz and 3.072 MHz happen to give you all the standard baud rates from 50-38.4Kbaud with negligible error. See the 8250/82C50/16C450 datasheet for details on how to calculate the baud rate constant for various frequencies. Lee -- A designer knows he has achieved perfection not when there is nothing left to add, but when there is nothing left to take away. -- Antoine de Saint Exupery -- Lee Hart, 814 8th Ave N, Sartell MN 56377, www.sunrise-ev.com -- This email has been checked for viruses by Avast antivirus software. |