Subversion Repositories Code-Repo

Rev

Rev 155 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 155 Rev 158
Line 1... Line 1...
1
#include <xc.h>
1
#include <xc.h>
2
#include <delays.h>
2
#include <delays.h>
3
#include "defines.h"
3
#include "defines.h"
4
#include "timers.h"
4
#include "base_TIMERS.h"
5
 
5
 
6
void Timer1_Init(void) {
6
void Timer1_Init(void) {
7
    T1CONbits.TMR1CS = 0x2;     // Clock source using T1OSC and T1CLK pins
7
    T1CONbits.TMR1CS = 0x2;     // Clock source using T1OSC and T1CLK pins
8
    T1CONbits.RD16 = 0x1;       // Configure for 16-bit read/writes
8
    T1CONbits.RD16 = 0x1;       // Configure for 16-bit read/writes
9
    T1CONbits.T1OSCEN = 0x1;    // Enable crystal driver
9
    T1CONbits.T1OSCEN = 0x1;    // Enable crystal driver