Hint... Read about the TIMERS. john darcy wrote: > Hi, well for a start sorry about my first post...i > didn't make things too clear. I checked the archives > but couldn't find anything that helped. > > What I need is some code (pic assembly) for a PC16C74A > to implement the following.... > > **Generate two square wave outputs, each with a 50% > duty cycle. Also I want to be able to vary the > frequency of these signals independently of one and > other from about 1KHz to 2MHz or as close as I can get > to these limits. > > **The frequency of each square wave will be entered on > a PC keyboard and sent via the serial port to the PIC > but at the moment my main problem is trying to set up > the square waves themselves. > > If anyone has some code that I could use to generate > these square waves and set their frequencies by say > putting a value in the appropriate register I'd really > appreciate it. Thanks a million, > John. > > __________________________________________________ > Do You Yahoo!? > Thousands of Stores. Millions of Products. All in one Place. > http://shopping.yahoo.com/ > > -- > http://www.piclist.com hint: The PICList is archived three different > ways. See http://www.piclist.com/#archives for details. -- * | __O Thomas C. Sefranek tcs@cmcorp.com |_-\<,_ Amateur Radio Operator: WA1RHP (*)/ (*) Bicycle mobile on 145.41, 448.625 MHz ARRL Instructor, Technical Specialist, VE Contact. http://hamradio.cmcorp.com/inventory/Inventory.html http://www.harvardrepeater.org -- http://www.piclist.com hint: The PICList is archived three different ways. See http://www.piclist.com/#archives for details.