12/21/2020 0 Comments Picbasic Pro Manual
There must end up being something incorrect with my code because the damned Red just sits there darkish as sin.Can anybody prospect me into the route of righteousness ón this sucker Thanks a lot, Jim Name: 7segjw1.bas Compiler: PICBASIC PRO Compiler 3.1 Assembler: MPLAB Back button IPE v5.15 Target PIC: 16F630 Hardware: Laboratory Protoboard Oscillator: lnternal 8 MHz.Keywords: 7 portion display Explanation: PICBASIC PRO plan to blink an LED connected to PORTC.0 about once a second.
Picbasic Pro Code Because ThePORTC.0 will be pin number 10 of the 16F630. CONFIG config INTRC0SCNOCLKOUT WDTON MCLREON CP0FF ENDCONFIG TRISA 001000 TRISC 000000 SA var PORTC.0 Alias PORTC.0 to SA mainloop: Great SA Turn on section A connected to PORTC.0 Stop 500 Hold off for.5 mere seconds Low SA Change off section A linked to PORTC.0 Temporary stop 500 Hold off for.5 mere seconds Goto mainloop Move back again to loop and blink Brought forever Finish Labels: None of them. Does the Lab Protoboard possess a pullup on that flag Perform you possess a debugger at the.g. PICkit3. To obtain a useful answer, generally state which Photo you are using. Will become required mainly because soon as the program code starts controlling more pieces in PORTC. No analog ón the 16F630 but the watchdog timer concern should be addressed. Even therefore, I would nevertheless anticipate the Directed to display as the timeout time period would end up being 2 mere seconds with the default OPTIONREG configurations. Not convinced that the watchdog timer problem is definitely everything wrong right here though it does need to end up being corrected for the Directed to flash at the anticipated timing. If the OP has told PBPRO the chip is operating at 8MHz when its actually 4MHz, after that those pause delays are usually probably giving one second pauses. Still youd anticipate to find something if the WDT requires 2 secs to give up in. I was looking at the Pinout Description desk and do not realize the AN4 in RC0AN4 is definitely for the 16F676 only. I am not acquainted with PicBásic, but what détermine Pause 500 to become 0.5 second delay From PicBasic Professional compiler manual, PAUSE presumes an oscillator rate of recurrence of 4MHz.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |