Programa Motor
Pesquisas Acadêmicas: Programa Motor. Pesquise 861.000+ trabalhos acadêmicosPor: fezes • 28/9/2013 • 365 Palavras (2 Páginas) • 350 Visualizações
//************************************************************************************
//**
//** File name: C:\Users\Flávio\Desktop\teste.c
//** Title:
//** Description:
//**
//** Generated by: Flowcode v5.1.0.0
//** Date: Tuesday, July 09, 2013 21:54:04
//** Licence: Professional
//** Registered to: xyz
//** Licence key: WUK7B9
//**
//**
//** 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
//Definições para o microcontrolador
#define P16F628A
#define FC_CAL_PIC
#define MX_EE
#define MX_EE_SIZE 128
#define MX_UART_1
#define MX_UART_1_TX_PORT portb
#define MX_UART_1_TX_TRIS trisb
#define MX_UART_1_TX_PIN 2
#define MX_UART_1_RX_PORT portb
#define MX_UART_1_RX_TRIS trisb
#define MX_UART_1_RX_PIN 1
#define MX_PWM
#define MX_PWM_CNT 1
#define MX_PWM_PSCA1
#define MX_PWM_PSCA4
#define MX_PWM_PSCA16
#define MX_PWM_1_PORT portb
#define MX_PWM_1_TRIS trisb
#define MX_PWM_1_PIN 3
//Funções
#define MX_CLK_SPEED 19660800
#ifdef _BOOSTC
#include <system.h>
#endif
#ifdef HI_TECH_C
#include <pic.h>
#endif
//Configuração de dados
//Funções internas
#include "C:\Program Files\Flowcode\v5\FCD\internals.c"
//Declarações da função Macro
//Declarações da variável
#define FCV_FALSE (0)
#define FCV_TRUE (1)
MX_UINT8 FCV_BOTAO = (0x0);
MX_UINT8 FCV_TESTE = (0x0);
#include "C:\Program Files\Flowcode\v5\CAL\includes.c"
//Implementações Macro
void main()
{
//Inicialização
cmcon = 0x07;
//Código de inicialização da interrupção
option_reg = 0xC0;
//Saída
//Saída: 0 -> PORTA
trisa = 0x00;
porta = (0);
//Entrada
//Entrada: PORTB -> Botao
trisb = trisb | 0xFF;
FCV_BOTAO = portb;
//Ciclo
//Ciclo: Enquanto1
//************************************************************************************
//**
//** File name: C:\Users\Flávio\Desktop\teste.c
//** Title:
//** Description:
//**
//** Generated by: Flowcode v5.1.0.0
//** Date: Tuesday, July 09, 2013 21:54:04
//** Licence: Professional
//** Registered to: xyz
//** Licence key: WUK7B9
//**
//**
//** http://www.matrixmultimedia.com
//**
//************************************************************************************
...