![]() ' bit5 0= toggle mode diabled 1= enabled bit4 single pulse mode 1- en 0= dis, bit 2 -status bit,1-0 - gate source selĭEFINE OSC 32 ' Timing referance for pause, pauseus commandsĭEFINE ADC_BITS 12 ' Number of bits in ADCIN result - Required for adcin commandĭEFINE ADC_CLOCK 5 ' fosc/32 0.8uS 32MhzĭEFINE ADC_SAMPLEUS 20 ' ADC sampling time in microseconds - Required for adcin command T1GCON = %00000000 ' Timer 1 Gate Control bit7 0= counts regardless of gate 1 = gates in use, bit6 gate active when 1= High ,0=low ' bit5-4 = TMR1 prescale 11= 1:8 ,bit3=0 LP off,bit2=1 no sync ext CLK ,bit1= 0 n/a,Bit0=0 Timer 1 on/off ![]() Code: HLVDCON = $00 'Turn off HIGH /LOW Voltage Detect Module
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |