Author |
Message |
Topic: pic 18f6722 uart |
amit
Replies: 5
Views: 8834
|
Forum: General CCS C Discussion Posted: Sun Apr 27, 2014 1:19 am Subject: pic 18f6722 uart |
Ttelmah,
I tried setup_spi(FALSE) as suggested by you, the message hello appeared for 4-5 times and then no action. Also, this output does not repeat everytime I switch ON. I think there may be pr ... |
Topic: pic 18f6722 uart |
amit
Replies: 5
Views: 8834
|
Forum: General CCS C Discussion Posted: Sat Apr 26, 2014 9:04 pm Subject: pic 18f6722 uart |
I have code similar to this for LCD and keypad. So the possible faults of LVP and MCLR does not apply to this.
Setup_spi(false) and errors also does not works. |
Topic: pic 18f6722 uart |
amit
Replies: 5
Views: 8834
|
Forum: General CCS C Discussion Posted: Sat Apr 26, 2014 12:00 pm Subject: pic 18f6722 uart |
i am not able to run a simple uart program. I am using a max232 for level shifting and hardware is perfect, it works with pic18f452.
below is the code#include "serial.h"
void main( ... |
Topic: pic 18f6722 |
amit
Replies: 7
Views: 9254
|
Forum: General CCS C Discussion Posted: Tue Mar 11, 2014 7:07 am Subject: pic 18f6722 |
PCM Programmer,
Your suggestion worked i used NOXINST and it worked instantly, thankyou. |
Topic: pic 18f6722 |
amit
Replies: 7
Views: 9254
|
Forum: General CCS C Discussion Posted: Sun Mar 09, 2014 8:08 am Subject: pic 18f6722 |
i have version 4.038.
the LED does not glows at all with code that i have posted above.
If i swap position of output bit as shown below, the LED glows and does not gets OFF.
while(1& ... |
Topic: pic 18f6722 |
amit
Replies: 7
Views: 9254
|
Forum: General CCS C Discussion Posted: Sun Mar 09, 2014 8:00 am Subject: pic 18f6722 |
this is the file i used for testing
#include "main.h"
void main()
{
setup_adc_ports(NO_ANALOGS|VSS_VDD);
setup_adc(ADC_OFF|ADC_TAD_MUL_0);
... |
Topic: pic 18f6722 |
amit
Replies: 7
Views: 9254
|
Forum: General CCS C Discussion Posted: Sun Mar 09, 2014 7:45 am Subject: pic 18f6722 |
i am using the pic18f6722 for the first time. I tried a simple LED toggle program using CCS, but it wont work.
i tried putting some value on one of its port, which works fine.
so i concluded tha ... |
|