CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

WHAT THE..... Even RS232 doesnt work, does anything work!!!

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
rkinchin
Guest







WHAT THE..... Even RS232 doesnt work, does anything work!!!
PostPosted: Wed Dec 09, 2009 12:02 pm     Reply with quote

Found so many bug in this compiler thought I would use a simple RS232

First for some stupid reason UART1 produces code for UART4 and attempting to use any other uart produces a compiler error

Anyone get this to work!!!
Code:
 
#include<24FJ256GB110.h>
#FUSES NOWDT                    //No Watch Dog Timer
#FUSES NOJTAG                   //JTAG disabled
#FUSES NOPROTECT                //Code not protected from reading
#FUSES NOWRT                    //Program memory not write protected
#FUSES DEBUG                    //Debug mode for use with ICD
#FUSES ICSP1                    //ICD uses PGC1/PGD1 pins
#FUSES WINDIS                   //Watch Dog Timer in non-Window mode
#FUSES WPRES128                 //Watch Dog Timer PreScalar 1:128
#FUSES WPOSTS16                 //Watch Dog Timer PostScalar 1:32768
#FUSES NOIESO                   //Internal External Switch Over mode disabled
#FUSES PR_PLL                   //Primary Oscillator with PLL
#FUSES NOCKSFSM                 //Clock Switching is disabled, fail Safe clock monitor is disabled
#FUSES OSCIO                    //OSC2 is general purpose output
#FUSES HS                       //High speed Osc (> 4mhz for PCM/PCH) (>10mhz for PCD)
#FUSES NOIOL1WAY                //Allows multiple reconfigurations of peripheral pins
#FUSES WPEND_LOW             
#FUSES WPCFG                 
#FUSES WPDIS                 
#FUSES WPFP0                 
#FUSES PLL1                     //Divide By 1(4MHz oscillator input)
#FUSES RESERVED                 //Used to set the reserved FUSE bits
#FUSES RESERVED                 //Used to set the reserved FUSE bits
#FUSES RESERVED                 //Used to set the reserved FUSE bits
#FUSES DISUVREG           
#use delay(clock=48M,RESTART_WDT,cyrstal=4M)
#use rs232(uart2,baud=9600)
#pin_select U2TX=PIN_B8

main()
{
   }


This was compiled using 4.101 and got

Executing: "C:\Program files\Picc\CCSC.exe" +FD "xxx.c" +DF +LN -T +A +M -Z +Y=9 +EA
*** Error 100 "xxx.C" Line 27(5,28): USE parameter value is out of range No Second UART
1 Errors, 0 Warnings.
Halting build on first failure as requested.
BUILD FAILED: Wed Dec 09 17:42:33 2009
[/code]

Oh and the baud rate 9600 produces a bit rate of 160uS

So NUFFIN WORKS
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Wed Dec 09, 2009 12:47 pm     Reply with quote

Switch to 18F PICs. You'll be happier.

This remark is not intended to be mean. The PCD compiler is irritating
to you. The PCH compiler will be a lot less irritating, and you'll be
happier.
Guest








PostPosted: Wed Dec 09, 2009 2:48 pm     Reply with quote

No the compiler is not irritating me, I am a professional and I need to have tools that work, My projects requires PIC24 and 18's are not powerful enough for the tasks, I expected better from PCD. These are very basic functions of the compiler and not finger trouble, I have been using the PCH for years now so I am used to CCS ways.
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group