#include <P16F628.h>
#include <P16F628_bits.h>
#include <PortBits.h>

#define APROCFREQ 20000000

#define BITSIZE 14
#define BOOTADDRESS 0
#define FIRSTRAM 0x20
#define LASTRAM 0x1FF
#define HASOSCCAL 0
#define nPAGESRAM 4
#define nPAGESROM 1
//
// Header file - should be included in all C files used within the program
// This file is created automatically and should not be changed
//

//
// Functions
//
void UserInitialise();			// Your initialisation code
void UserInterrupt();			// Your interrupt code
void UserLoop();			// your Main loop code


#define PortInnCopy 1
#pragma asmline _PortInnCopy=1
#define PortOutnCopy 10
// **********
//
// Port Input
//
// **********
#define PortInUsed 1
#pragma asmline _PortInUsed=1
#define PortIn0Used 1
#pragma asmline _PortIn0Used=1
#define PortIn0 12
#define In0Port PORTB
#define In0Bit 1
#define RXPort PORTB
#define RXBit 1
#define RX bRB1
#define RXTris bTRB1
#pragma asmline _In0Port=PORTB
#pragma asmline _In0Bit=1
#pragma asmline _RXPort=PORTB
#pragma asmline _RXBit=1
// **********
//
// Timer 2
//
// **********
#define Tmr2Used 1
#define Tmr20 11
#define Tmr2_T2_Of 0
#define T2_Post 16
#define T2_Pre 16
#define T2_En 1
// **********
//
// Timer 1
//
// **********
#define Tmr1Used 1
#define Tmr10 10
#define Tmr1_T1_Of 0
#define EnTimer1 1
#define T1_UseOsc 1
#define SyncT1Inp 1
#define EnT1Osc 0
#define T1_PSD 4
// **********
//
// Port Driver
//
// **********
#define PortOutUsed 1
#define PortOut10Used 1
#define PortOut10 9
#define InitialValue10 0
#define Out10Port PORTB
#define Out10Bit 2
#define TXPort PORTB
#define TXBit 2
#define TX bRB2
#define TXTris bTRB2
// **********
//
// Port Driver
//
// **********
#define PortOut8Used 1
#define PortOut8 8
#define InitialValue8 0
#define Out8Port PORTB
#define Out8Bit 4
#define en2Port PORTB
#define en2Bit 4
#define en2 bRB4
#define en2Tris bTRB4
// **********
//
// Port Driver
//
// **********
#define PortOut7Used 1
#define PortOut7 7
#define InitialValue7 0
#define Out7Port PORTB
#define Out7Bit 5
#define rst2Port PORTB
#define rst2Bit 5
#define rst2 bRB5
#define rst2Tris bTRB5
// **********
//
// Port Driver
//
// **********
#define PortOut6Used 1
#define PortOut6 6
#define InitialValue6 0
#define Out6Port PORTB
#define Out6Bit 6
#define clk2Port PORTB
#define clk2Bit 6
#define clk2 bRB6
#define clk2Tris bTRB6
// **********
//
// Port Driver
//
// **********
#define PortOut5Used 1
#define PortOut5 5
#define InitialValue5 0
#define Out5Port PORTB
#define Out5Bit 7
#define dir2Port PORTB
#define dir2Bit 7
#define dir2 bRB7
#define dir2Tris bTRB7
// **********
//
// Port Driver
//
// **********
#define PortOut4Used 1
#define PortOut4 4
#define InitialValue4 0
#define Out4Port PORTA
#define Out4Bit 1
#define dir1Port PORTA
#define dir1Bit 1
#define dir1 bRA1
#define dir1Tris bTRA1
// **********
//
// Port Driver
//
// **********
#define PortOut3Used 1
#define PortOut3 3
#define InitialValue3 0
#define Out3Port PORTB
#define Out3Bit 3
#define ledPort PORTB
#define ledBit 3
#define led bRB3
#define ledTris bTRB3
// **********
//
// Port Driver
//
// **********
#define PortOut2Used 1
#define PortOut2 2
#define InitialValue2 0
#define Out2Port PORTB
#define Out2Bit 0
#define clk1Port PORTB
#define clk1Bit 0
#define clk1 bRB0
#define clk1Tris bTRB0
// **********
//
// Port Driver
//
// **********
#define PortOut1Used 1
#define PortOut1 1
#define InitialValue1 0
#define Out1Port PORTA
#define Out1Bit 3
#define rst1Port PORTA
#define rst1Bit 3
#define rst1 bRA3
#define rst1Tris bTRA3
// **********
//
// Port Driver
//
// **********
#define PortOut0Used 1
#define PortOut0 0
#define InitialValue0 0
#define Out0Port PORTA
#define Out0Bit 2
#define en1Port PORTA
#define en1Bit 2
#define en1 bRA2
#define en1Tris bTRA2

// **********
//
// Application Designer Variables
//
// **********


// Defines specified by 1 or more elements

