RS232 Not Outputting Correct Characters with HITEC C
Posted: Mon Mar 28, 2011 11:17 pm
RS232 Using software control at 4800 Baud TX from A0. Target=16F88 (same results for other target devices e.g. 16F88). When compiled to chip using BoostC, correct characters are displayed via USB and hypertermial.
If changed to Hitec (lite or evauation pro mode) then wrong characters are displayed and CR function not working either.
Any way around this please?
If changed to Hitec (lite or evauation pro mode) then wrong characters are displayed and CR function not working either.
Any way around this please?
Code: Select all
File name: M:\Flowcode Testing\TestRS232.c
Generated by: Flowcode v4.3.7.63
Date: Monday, March 28, 2011 23:11:00
Licence: Professional
Registered to: Martin
http://www.matrixmultimedia.com
Launching the compiler...
C:\Program Files (x86)\HI-TECH Software\PICC\9.80\bin\picc.exe --CHIP=16F88 -N48 TestRS232.c
TestRS232.c: main()
909: FCD_RS2320_SendRS232String("Seconds:",8);
^ (359) illegal conversion between pointer types (warning)
pointer to const unsigned char -> pointer to unsigned char
919: FCD_RS2320_SendRS232String(" ",3);
^ (359) illegal conversion between pointer types (warning)
pointer to const unsigned char -> pointer to unsigned char
930: FCD_RS2320_SendRS232String("AN0:",4);
^ (359) illegal conversion between pointer types (warning)
pointer to const unsigned char -> pointer to unsigned char
..................
(1273) Omniscient Code Generation not available in Lite mode (warning)
HI-TECH C Compiler for PIC10/12/16 MCUs (Lite Mode) V9.80
Copyright (C) 2010 Microchip Technology Inc.
Memory Summary:
Program space used 416h ( 1046) of 1000h words ( 25.5%)
Data space used 45h ( 69) of 170h bytes ( 18.8%)
EEPROM space used 0h ( 0) of 100h bytes ( 0.0%)
Configuration bits used 2h ( 2) of 2h words (100.0%)
ID Location space used 0h ( 0) of 4h bytes ( 0.0%)
Running this compiler in PRO mode, with Omniscient Code Generation enabled,
produces code which is typically 40% smaller than in Lite mode.
The HI-TECH C PRO compiler output for this code could be 408 words smaller.
See http://microchip.htsoft.com/portal/pic_pro for more information.
Return code = 0
Launching the linker/assembler...
C:\Program Files (x86)\Matrix Multimedia\Flowcode V4\Tools\DoNothing\DoNothing.exe
Return code = 0
Launching the programmer...
C:\Program Files (x86)\Matrix Multimedia\Flowcode V4\tools\PPP\PPPv3.exe -cs 2 -chip PIC16F88 -nogui "TestRS232.hex"
Sending program...
Erasing the PICmicro
NOTE: EEPROM data will also be erased!
Writing program memory
Writing configuration memory
Writing id-locations
Reading program memory
Reading configuration memory
Finished reading PICmicro contents
Program sent and verified OK
1048 out of 4096 program words used
0 out of 256 data bytes used
That took 2.121 seconds
Return code = 0
FINISHED