USB Serial  FTDI_232

Beschreibung

This example show the use of the RS232 Component in Flowcode ,Data is send from the MicroController UART module
 the FTDI 232 serial to USB chip.

The voltage on the ADC pin AN0 are converted and placed in a buffer which is tranmitted to a PC GUI such as VB or Labview 
The data is the raw hex value, the PC GUI converts the raw values into the correct engineering units 

The Data is only transmitted when the microcontroller receives the send command from the PC GUI ,this implements as software handshakeing 
 the Code expects the Character "S" or 0x53h as the  send command 

The Run led on RB0 will flash  as long as the Mcu is powered, it is controlled by the Timer 1 Interrupt

--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Flowcode-Report von Peter Erasmus


Einstellungen:

Compiler-Zeile

$(appdir)compilers\pic\boostc\boostc_$(family:/12F/16F).exe

Compiler-Schalter

-v -t PIC$(chip:u) "$(target).c"

Chip-Einstellungen


Taktfrequenz
32000000 (Hz)

Adresse Wert
0x300000 0xff
0x300001 0x33
0x300002 0xff
0x300003 0xfc
0x300004 0xff
0x300005 0xfd
0x300006 0xff
0x300007 0xff
0x300008 0xff
0x300009 0xff
0x30000a 0xff
0x30000b 0xff
0x30000c 0xff
0x30000d 0xff
Name Wert
FOSC 0x3
PLLCFG 0x1
PRICLKEN 0x1
FCMEN 0x0
IESO 0x0
PWRTEN 0x1
BOREN 0x3
BORV 0x3
WDTEN 0x0
WDTPS 0xf
CCP2MUX 0x1
PBADEN 0x0
CCP3MX 0x1
HFOFST 0x1
T3CMX 0x1
P2BMX 0x1
MCLRE 0x1
STVREN 0x1
LVP 0x1
XINST 0x1
DEBUG 0x1
CP0 0x1
CP1 0x1
CP2 0x1
CP3 0x1
CPB 0x1
CPD 0x1
WRT0 0x1
WRT1 0x1
WRT2 0x1
WRT3 0x1
WRTC 0x1
WRTB 0x1
WRTD 0x1
EBTR0 0x1
EBTR1 0x1
EBTR2 0x1
EBTR3 0x1
EBTRB 0x1


Globale Daten:

Komponenten

Name
RS232
led_5mm1
TempSignal

Makros

Rückgaben Name Beschreibung
NONE BlinkRunLed
NONE Main

Ports

Typ Name Beschreibung
BYTE $PORTE
BYTE $PORTD
BYTE $PORTC
BYTE $PORTB
BYTE $PORTA

Konstanten

Typ Name Beschreibung
BOOL false
BOOL true

Variablen

Typ Name Beschreibung
BYTE IntCount
BYTE RxChar
BOOL LEDSTATUS
BYTE[2] SendData[2]
UINT TempRaw ADC Value of Temperature Signal
BYTE SendCounter


Makro-Name: BlinkRunLed


Rückgabedetails

Kein Rückgabewert für dieses Makro definiert

Parameter

Keine Parameter für dieses Makro definiert

Variablen

Keine lokalen Variablen für dieses Makro definiert


Makro-Name: Main


Rückgabedetails

Kein Rückgabewert für dieses Makro definiert

Parameter

Keine Parameter für dieses Makro definiert

Variablen

Keine lokalen Variablen für dieses Makro definiert