jean12
Advanced Member level 2
- Joined
- Aug 27, 2013
- Messages
- 529
- Helped
- 5
- Reputation
- 12
- Reaction score
- 6
- Trophy points
- 18
- Activity points
- 5,497
Hello there I am using PIC16F1936 on the point where I am,i need to use Timer 1 which provide the scale for Frequency and voltage division/Multiplication for my experiment,I now have difficulty in configuring this PIC to use the Timer 1 as a counter,see the codes below could any one help me to handle more this?
The scale has to be handled for division and multiplication for V/F of an ACIM Motor!!
Thank you!!
PHP:
BANKSEL T1GCON ;Gate control register for Timer 1 operation
MOVLW 0XC0
MOVWF T1GCON
BANKSEL T1CON
MOVLW 0X31
MOVWF T1CON ;Timer one configuration and turn on
BANKSEL INTCON
MOVLW 0XC0
MOVWF INTCON ;Timer 1 controlling register for operation
BANKSEL PIE1
MOVLW 0XC1
MOVWF PIE1 ;Interrupr enabling bits values
The scale has to be handled for division and multiplication for V/F of an ACIM Motor!!
Thank you!!