//************************************************************************************
//**  
//**  File name:     C:\Flowcode 5\Forsøg\629FC5Ok\12F629 FC5 testOk.c
//**  Title:         
//**  Description:   
//**  
//**  Generated by:  Flowcode v5.5.2.1
//**  Date:          Tuesday, July 19, 2022 14:35:46
//**  Licence:       Professional
//**  Registered to: storebælt1
//**  Licence key:   R83445
//**  
//**  
//**  http://www.matrixmultimedia.com
//**  
//************************************************************************************


#define MX_PIC

#define MX_USES_UINT8 1
#define MX_USES_SINT16 0
#define MX_USES_CHAR 0
#define MX_USES_FLOAT 0
#define MX_USES_SINT32 0
#define MX_USES_BOOL 1
#define MX_USES_UINT16 0
#define MX_USES_UINT32 0
//Defineringer for microcontroller
#define P12F629
#define FC_CAL_PIC
#define FC_USEGPIO
#define MX_EE
#define MX_EE_SIZE 128

//Funktioner
#define MX_CLK_SPEED 4000000
#ifdef _BOOSTC
#include <system.h>
#endif
#ifdef HI_TECH_C
#include <pic.h>
#endif

//Konfiguration data
#ifdef _BOOSTC
#pragma DATA 0x2007, 0x3f95
#endif
#ifdef HI_TECH_C
__CONFIG(0x3f95);
#endif

//Intern funktioner
#include "C:\Program Files (x86)\Flowcode\v5\FCD\internals.c"

//Macro funktion erklæringer


//Variabel erklæringer
#define FCV_FALSE (0)
#define FCV_TRUE (1)



#include "C:\Program Files (x86)\Flowcode\v5\CAL\includes.c"

//Macro implementeringer



void main()
{
	//Initialization
	cmcon = 0x07;


	//Interrupt initialization code
	option_reg = 0xC0;


	//Loop
	//Loop: While 1
	while (1)
	{

		//Output 
		//Output : 0 -> A0
		trisio = trisio & 0xFE;
		if ((0))
			gpio = (gpio & 0xFE) | 0x01;
		else
			gpio = gpio & 0xFE;

		//Delay 
		//Delay : 100 ms
		delay_ms(100);

		//Output 
		//Output : 1 -> A0
		trisio = trisio & 0xFE;
		if ((1))
			gpio = (gpio & 0xFE) | 0x01;
		else
			gpio = gpio & 0xFE;

		//Delay 
		//Delay : 1 s
		delay_s(1);


	}

	mainendloop: goto mainendloop;
}

void MX_INTERRUPT_MACRO(void)
{
}



