Mistake in my code?

Thread Starter

mickyt1989

Joined Jun 12, 2013
1
Hello there I am trying to program my PIC16F877 to recieve data from a rotary sensor. I am looking to create code for an ADC and send it out through a serial port to PuTTY. It will compile ok but I am just not getting the signal out.

Here is my code. Where am I going wrong?
 

Attachments

t06afre

Joined May 11, 2009
5,934
It would be best if you posted your schematic. Could you also write some words on how you connected your PC to the Micro. What kind of USB dongle do you use?
What have you done to debug this? And are you familiar with debugging at all. I do not know why. But many beginners are VERY reluctant to learn debugging. But the debugger is your best friend in programming. If your programmer do not support in circuit debugging for your chip. You can also trap a lot of errors with simulator in MPLAB. Are you using MPLABX or MPLAB? If you are on a windows platform. I would have used MPLAB and not MPLABX
 
Top