Hello again everyone. I've been trying to complete my task using the timer option that mister_e informed me about. I'm not sure what I'm doing wrong, for some reason I get half the number of pulses counted as the frequency I'm running at. It's this way at every frequency. Maybe it's just been a long day, or I'm misunderstanding something in the book. I tried to mess with the prescale, but it only adds that extra to the already multiplier. The Code is posted below. Thank you everyone who has helped me out.
Anthony
Code:@ DEVICE PIC12F683, INTRC_OSC_NOCLKOUT @ DEVICE PIC12F683, WDT_ON @ DEVICE PIC12F683, PWRT_ON @ DEVICE PIC12F683, MCLR_OFF @ DEVICE PIC12F683, BOD_ON @ DEVICE PIC12F683, CPD_OFF @ DEVICE PIC12F683, PROTECT_OFF '* Hardware Setups * INTCON = %10001000 OSCCON = %01110000 '* I/O Pin Descriptions Below * '* PIN 1 - VDD - 5V * '* PIN 2 - T1CK1 - Input - Pulses from Hall Effect * '* PIN 3 - '* PIN 4 - GP3 - Input for the direction of the Hall Effect * '* PIN 5 - CCP1 - PWM Output to the Analog converter * '* PIN 6 - '* PIN 7 - '* PIN 8 - VSS - Ground * TRISIO = %00111000 'IOC = %00001000 '* Timer Setup * T1CON = %00000110 TMR1H = 0 TMR1L = 0 PAUSE 500 T1CON.0 = 1 PAUSE 1000 T1CON.0 = 0 WRITE 0, TMR1H WRITE 1, TMR1L end




Bookmarks