can some one teach me basic programming in c using mplab

Status
Not open for further replies.

dexterdep

New Member
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.
 
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/
 
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…