thanx.i will work it out.if something goes wrong...i'll tell u guys...
thanx.i will work it out.if something goes wrong...i'll tell u guys...
' Device Programming Options
' --------------------------
@ DEVICE pic16F628, INTRC_OSC_NOCLKOUT
' System Clock Options
@ DEVICE pic16F628, WDT_ON
' Watchdog Timer
@ DEVICE pic16F628, PWRT_ON
' Power-On Timer
@ DEVICE pic16F628, MCLR_OFF
' Master Clear Options (Internal)
@ DEVICE pic16F628, BOD_ON
' Brown-Out Detect
@ DEVICE pic16F628, LVP_OFF
' Low-Voltage Programming
@ DEVICE pic16F628, CPD_OFF
' Data Memory Code Protect
@ DEVICE pic16F628, PROTECT_OFF
' Program Code Protection
i can't compile if those code are exist.i use pic16f877a.
@ DEVICE pic16F877a, INTRC_OSC_NOCLKOUT
' System Clock Options
@ DEVICE pic16F877a, WDT_ON
' Watchdog Timer
@ DEVICE pic16F877a, PWRT_ON
' Power-On Timer
@ DEVICE pic16F877a, MCLR_OFF
' Master Clear Options (Internal)
@ DEVICE pic16F877a, BOD_ON
' Brown-Out Detect
@ DEVICE pic16F877a, LVP_OFF
' Low-Voltage Programming
@ DEVICE pic16F877a, CPD_OFF
' Data Memory Code Protect
@ DEVICE pic16F877a, PROTECT_OFF
' Program Code Protection
BatVal var CMCON.7
BatLoLED var PORTB.7
CMCON=%00100101
VRCON=%11101100
Pauseus 10
TRISA=%11111111
TRISB=%00000000
BatLoLoop:
BatLoLED=BatVal
Goto BatLoLoop
End
my vref=4v, vin=3.6 and my vout=9v.can someone help me which part of the coding need to be edit.please...
Vref = 4v - what is Vref connected to?my vref=4v, vin=3.6 and my vout=9v.can someone help me which part of the coding need to be edit.please...
Vin = 3.6v - what is Vin connected to?
Vout = 9v - what is Vout connected to?
Read the datasheet for the 16F877A!
Can MCLR be turned off?
How many oscillator modes does the 16F877A have? What are they?
Last edited by skimask; - 17th September 2008 at 19:58.
Bookmarks