//************************************************************************************
//**  
//**  File name:     C:\Documents and Settings\stefan karlsson\Mina dokument\Backup\Egna projekt\programering\Flowcode4.0 filer\Test\testRB3_16f628a.c
//**  Generated by:  Flowcode v4.1.1.55
//**  Date:          Wednesday, October 07, 2009 14:21:03
//**  Licence:       Professional
//**  Registered to: Stefan Karlsson
//**  
//**  
//**  http://www.matrixmultimedia.com
//************************************************************************************


#define MX_PIC

//Defines for microcontroller
#define P16F628A
#define MX_EE
#define MX_EE_TYPE1
#define MX_EE_SIZE 128
#define MX_UART
#define MX_UART_B
#define MX_UART_TX 2
#define MX_UART_RX 1
#define MX_PWM
#define MX_PWM_CNT 1
#define MX_PWM_TRIS1 trisb
#define MX_PWM_1 3

//Functions
#include <system.h>
#pragma CLOCK_FREQ 20000000

//Configuration data
#pragma DATA 0x2007, 0x3f2a

//Internal functions
#include "C:\Program\Matrix Multimedia\Flowcode V4\FCD\internals.h"

//Macro function declarations


//Variable declarations



//Macro implementations

void main()
{
	
	//Initialisation
	cmcon = 0x07;


	//Interrupt initialisation code
	option_reg = 0xC0;


	//Connection Point
	//Connection Point: [A]: A
FCC_Main_A:


	//Delay
	//Delay: 17 us
	delay_us(17);


	//Output
	//Output: 1 -> B3
	trisb = trisb & 0xf7;
	if (1)
		portb = (portb & 0xf7) | 0x08;
	else
		portb = portb & 0xf7;


	//Delay
	//Delay: 5 us
	delay_us(5);


	//Output
	//Output: 0 -> B3
	trisb = trisb & 0xf7;
	if (0)
		portb = (portb & 0xf7) | 0x08;
	else
		portb = portb & 0xf7;


	//Delay
	//Delay: 17 us
	delay_us(17);


	//Output
	//Output: 1 -> B3
	trisb = trisb & 0xf7;
	if (1)
		portb = (portb & 0xf7) | 0x08;
	else
		portb = portb & 0xf7;


	//Delay
	//Delay: 5 us
	delay_us(5);


	//Output
	//Output: 0 -> B3
	trisb = trisb & 0xf7;
	if (0)
		portb = (portb & 0xf7) | 0x08;
	else
		portb = portb & 0xf7;


	//Delay
	//Delay: 9 ms
	delay_ms(9);


	//Goto Connection Point
	//Goto Connection Point: [A]: A
	goto FCC_Main_A;


	mainendloop: goto mainendloop;
}

void interrupt(void)
{
}



