We strongly encourage users to use Package manager for sharing their code on Libstock website, because it boosts your efficiency and leaves the end user with no room for error. [more info]
posted on 2012/03/07 07:28:50 AM CET
hi
i tried following code for 18F2550 (20MHz) with default configataion at time of creating project
void main()
{
PORTB = 0; // Initialize PORTC
TRISB = 0; // Configure PORTC as output
PORTC = 0; // set PORTC to 0
TRISC = 128;
TRISA = 0xFF;
UART1_Init(9600); // Initialize UART module at 9600 bps
PWM1_Init(1000);
Delay_ms(100); // Wait for UART module to stabilize
while(1)
{
.
.
.
.
.
}
compiler gives an error at either PWM1_init or UART_init
it comlipe either PWM or UART at a time
individualy PWM and UART works as usual
but when i tried at as above it dose not work pleas help me
i guess it may be problem with configuration only but i could not found