I have downloaded and installed for my window 7 this one
PL2303_Prolific_DriverInstaller_windows_all is this fine???
now what to do?
PL2303_Prolific_DriverInstaller_windows_all is this fine???
now what to do?
Try reading. I refuse to repeat myself for the third time!I have downloaded and installed for my window 7 this one
PL2303_Prolific_DriverInstaller_windows_all is this fine???
now what to do?
Then you must download a terminal program. This work with Windows 7 and is free. http://sourceforge.net/projects/realterm/ Then set the serial port settings on terminal program to match your settings on the PIC. Those settings are under port banner in the latter terminal program. Some use of google to get the basics on using the serial port is also recommended. You have to start focusing on details. Not just walk around as a sleepwalker expecting that we will help you then you have taken a wrong turn.
#include <htc.h>
__CONFIG(LVP_OFF & BOREN_OFF & PWRTE_ON & WDTE_OFF & FOSC_HS);
#define _XTAL_FREQ 20000000
#define NINE 0 /* Use 9bit communication? FALSE=8bit */
#define BAUD 9600
#define RX_PIN TRISB2
#define TX_PIN TRISB5
#define DIVIDER ((int)(_XTAL_FREQ/(16UL * BAUD) -1))
#if NINE == 1
#define NINE_BITS 0x40
#else
#define NINE_BITS 0
#endif
#if HIGH_SPEED == 1
#define SPEED 0x4
#else
#define SPEED 0
#endif
Initialize ();
void main ()
{
Initialize ()
{
while(1)
{
putchar('H'); //print the letter 'H'
putchar('i'); //print 'i'
putchar('\r'); // return to beginning of line
putchar('\n'); //new line
}
}
}
Initialize ()
{
RX_PIN = 1;
TX_PIN = 1;
SPBRG = DIVIDER;
RCSTA = (NINE_BITS|0x90);
TXSTA = (SPEED|NINE_BITS|0x20);
}
Make: The target "C:\Users\Abc\Documents\mplab\main.p1" is out of date.
Executing: "C:\Program Files (x86)\HI-TECH Software\PICC\9.83\bin\picc.exe" --pass1 C:\Users\Abc\Documents\mplab\main.c -q --chip=16F877A -P --runtime=default --opt=default -D__DEBUG=1 -g --asmlist "--errformat=Error [%n] %f; %l.%c %s" "--msgformat=Advisory[%n] %s" "--warnformat=Warning [%n] %f; %l.%c %s"
Warning [361] C:\Users\Abc\Documents\mplab\main.c; 35.1 function declared implicit int
Executing: "C:\Program Files (x86)\HI-TECH Software\PICC\9.83\bin\picc.exe" -omain.c.cof -mmain.c.map --summary=default --output=default main.p1 --chip=16F877A -P --runtime=default --opt=default -D__DEBUG=1 -g --asmlist "--errformat=Error [%n] %f; %l.%c %s" "--msgformat=Advisory[%n] %s" "--warnformat=Warning [%n] %f; %l.%c %s"
HI-TECH C Compiler for PIC10/12/16 MCUs (Lite Mode) V9.83
Copyright (C) 2011 Microchip Technology Inc.
(1273) Omniscient Code Generation not available in Lite mode (warning)
Error [1098] C:\Program Files (x86)\HI-TECH Software\PICC\9.83\sources\putchar.c; 16. conflicting declarations for variable "_putchar" (C:\Users\Abc\Documents\mplab\main.c:35)
********** Build failed! **********
#include <htc.h>
__CONFIG(LVP_OFF & BOREN_OFF & PWRTE_ON & WDTE_OFF & FOSC_HS);
#define _XTAL_FREQ 20000000
#define NINE 0 /* Use 9bit communication? FALSE=8bit */
#define BAUD 9600
#define RX_PIN TRISB2
#define TX_PIN TRISB5
#define DIVIDER ((int)(_XTAL_FREQ/(16UL * BAUD) -1))
#if NINE == 1
#define NINE_BITS 0x40
#else #define NINE_BITS 0
#endif
#if HIGH_SPEED == 1
#define SPEED 0x4
#else #define SPEED 0
#endif void Initialize (void); <----- YOU FORGOT THE "void's"
void main () { Initialize (); <---- YOU FORGOT THE";" {
while(1) {
putchar('H'); //print the letter 'H'
putchar('i'); //print 'i'
putchar('\r'); // return to beginning of line
putchar('\n'); //new line } }
} void Initialize () <----- YOU FORGOT THE "void"
{ RX_PIN = 1;
TX_PIN = 1;
SPBRG = DIVIDER; RCSTA = (NINE_BITS|0x90); TXSTA = (SPEED|NINE_BITS|0x20); }
That doesn't really tell me much, now does it?After changing few more things there are still error........
#include <htc.h>
__CONFIG(LVP_OFF & BOREN_OFF & PWRTE_ON & WDTE_OFF & FOSC_HS);
#define _XTAL_FREQ 20000000
#define NINE 0 /* Use 9bit communication? FALSE=8bit */
#define BAUD 9600
#define RX_PIN TRISB2
#define TX_PIN TRISB5
#define DIVIDER ((int)(_XTAL_FREQ/(16UL * BAUD) -1))
#if NINE == 1
#define NINE_BITS 0x40
#else
#define NINE_BITS 0
#endif
#if HIGH_SPEED == 1
#define SPEED 0x4
#else #define SPEED 0
#endif
void Initialize (void); //<----- YOU FORGOT THE "void's"
void main ()
{
Initialize (); <---- YOU FORGOT THE";" {
while(1)
{
putchar('H'); //print the letter 'H'
putchar('i'); //print 'i'
putchar('\r'); // return to beginning of line
putchar('\n'); //new line
}
}
void Initialize () //<----- YOU FORGOT THE "void"
{
RX_PIN = 1;
TX_PIN = 1;
SPBRG = DIVIDER;
RCSTA = (NINE_BITS|0x90);
TXSTA = (SPEED|NINE_BITS|0x20);
}
....sounds reasonable, "SPEED" is never defined, it is only defined,Not working showing error..........
Executing: "C:\Program Files (x86)\HI-TECH Software\PICC\9.83\bin\picc.exe" --pass1 C:\Users\Abc\Documents\mplab\main.c -q --chip=16F877A -P --runtime=default --opt=default -D__DEBUG=1 -g --asmlist "--errformat=Error [%n] %f; %l.%c %s" "--msgformat=Advisory[%n] %s" "--warnformat=Warning [%n] %f; %l.%c %s"
Warning [361] C:\Users\Abc\Documents\mplab\main.c; 29.1 function declared implicit int
Error [314] C:\Users\Abc\Documents\mplab\main.c; 37.1 ";" expected
Error [192] C:\Users\Abc\Documents\mplab\main.c; 42.10 undefined identifier "SPEED"
, since it isn't, "SPEED" is never assigned...#if HIGH_SPEED == 1
RX_PIN = 1;
TX_PIN = 1;