You should check to make sure what I/F your peripherals are using... SPI is a FOUR-wire I/F (Data in, Data out, Clock and Chip Select). You maybe using Microwire, a 3-wire I/F (Data I/O, Clock and Chip Select). Douglas Wood Software Engineer dbwood@kc.rr.com Home of the EPICIS Development System for the PIC and SX http://epicis.piclist.com ----- Original Message ----- From: "Ed Troy" To: Sent: Friday, August 03, 2001 8:50 PM Subject: Incredibly simple code does not work!! > I have a very simple application for a pic 16c74b. (Yes, I know it is gross > overkill, but that is what we are using.) Basically, it is being used to > program two National Semiconductor synthesizers. They use the standard SPI > bus, which has a data, a clock, and an enable line. I am using (or at least > trying to use) RC5 for data, RC3 for clock, and RC2 for low synthesizer > enable and RC1 for high synthesizer enable. The code seems to do nothing at > all, in either MPLAB or on the actual board. Basically, nothing toggles or > does ANYTHING! I am sure I am doing something incredibly stupid, or lacking > some very simple line of code to set something up, but I can't figure out > the problem at all. I am attaching a copy of the c code (I used a Hi-Tech > compiler) and the actual hex code that was generated by the Hi-Tech compiler. > > Any help on where my problem is would be greatly appreciated. As I said, > this is very simple, and the fact that nothing happens tells me that I am > just overlooking something very simple. > > TIA, > Ed > -- http://www.piclist.com hint: To leave the PICList mailto:piclist-unsubscribe-request@mitvma.mit.edu