PDA

View Full Version : Microchip PIC microcontroller



N1LAF
11-05-2011, 09:09 AM
Anyone here use/have experience with PIC microcontrollers?

It's been awhile since I was active in PIC microcontroller programming. In three days, I completed my RS232/SPI interface, in C. Really cool stuff. First program I developed that other than initialization, there is no program in the main loop, it is all interrupt controlled (All the routines are called on RS232 interrupt). I added speed control feature, so the speed delay value of 30,000 will drop the SPI clock speed to about 1 second. Why is this useful? For testing. With LED's on the SPI port outputs, and a switch/pull-up resistor on the input, I tested my software for proper interface working - RS232 to SPI output, and SPI input to RS232 output. The interface works as a SPI master. Any PIC projects in our membership(other than myself)?

N1LAF
11-05-2011, 09:28 AM
Just to follow up on project expansion ideas... in addition to SPI interfacing, adding a microcontroller bus interface to the serial interface. With an FPGA, and bus driver chips, and RS232 to VME bus interface.