Hi all,
I'm a mechanical engineering student, but I need to build a small and simple controler for my project. I'm been asking around, and I finally ended up with the 16F877A. (It's a long story, but I don't want to waste you time).
So
- Chip 16F877A
- PicBasic Pro
To get started, I just one to write a program for this chip that blink a LED using Picbasic Pro.
This is what I wrote (with the help from friend)
---------------------------------------------
'blinking led
define ocs 20
CMCON=7
ADCON1=14
TRISB=%00000000
'declare vars
led_1 Var PORTB.7
'o
main:
HIGH led_1
PAUSE 1000
LOW led_1
PAUSE 1000
GOTO main
--------------------------------------------
I don't know why it's not working.
Please help me.
Thanks a million.
I'm a mechanical engineering student, but I need to build a small and simple controler for my project. I'm been asking around, and I finally ended up with the 16F877A. (It's a long story, but I don't want to waste you time).
So
- Chip 16F877A
- PicBasic Pro
To get started, I just one to write a program for this chip that blink a LED using Picbasic Pro.
This is what I wrote (with the help from friend)
---------------------------------------------
'blinking led
define ocs 20
CMCON=7
ADCON1=14
TRISB=%00000000
'declare vars
led_1 Var PORTB.7
'o
main:
HIGH led_1
PAUSE 1000
LOW led_1
PAUSE 1000
GOTO main
--------------------------------------------
I don't know why it's not working.
Please help me.
Thanks a million.