D dexterdep New Member Apr 12, 2013 #1 hi guys i really need help, it's my first time programming C in mplab "hitech -c". i just learned assembly and want to learn how to write in C language Code: bsf status, rp0 movlw b'00011' movwf trisa movlw b'11111100' movwf trisb bcf status, rp0 i don't know how to initialize ports in C i really appreciate if some body can teach me the basics in programming.
hi guys i really need help, it's my first time programming C in mplab "hitech -c". i just learned assembly and want to learn how to write in C language Code: bsf status, rp0 movlw b'00011' movwf trisa movlw b'11111100' movwf trisb bcf status, rp0 i don't know how to initialize ports in C i really appreciate if some body can teach me the basics in programming.
Ian Rogers User Extraordinaire Forum Supporter Most Helpful Member Apr 13, 2013 #3 Howdy.... If you look at my signature.... You'll find Nigel's tutorials in ASM.... You will also find I have converted MOST of them to C using hi-tech. If you are using the old pic16f84a.. you don't need the line CMCON = 7. There is also a small tutorial on MPLAB that I did especially for people starting out.. https://www.electro-tech-online.com/threads/eb08.582/
Howdy.... If you look at my signature.... You'll find Nigel's tutorials in ASM.... You will also find I have converted MOST of them to C using hi-tech. If you are using the old pic16f84a.. you don't need the line CMCON = 7. There is also a small tutorial on MPLAB that I did especially for people starting out.. https://www.electro-tech-online.com/threads/eb08.582/