This is some help for your problems reported in a PM
Attachments
-
13.9 KB Views: 14
#pragma config CONFIG5L = 0xF
#pragma config CONFIG5H = 0xff
#pragma config CONFIG6L = 0xff
#pragma config CONFIG6H = 0xff
#pragma config CONFIG7L = 0xff
#pragma config CONFIG7H = 0xff
#pragma config CONFIG5L = 0xF
#pragma config CONFIG5H = 0xC0
#pragma config CONFIG6L = 0xF
#pragma config CONFIG6H = 0xE0
#pragma config CONFIG7L = 0xF
#pragma config CONFIG7H = 0x40
That was just warningsWith reference to the attachment in the previous post.
I had to change the last part of the configuration bits from:
To:Rich (BB code):#pragma config CONFIG5L = 0xF #pragma config CONFIG5H = 0xff #pragma config CONFIG6L = 0xff #pragma config CONFIG6H = 0xff #pragma config CONFIG7L = 0xff #pragma config CONFIG7H = 0xff
Now it compiles without any errors.Rich (BB code):#pragma config CONFIG5L = 0xF #pragma config CONFIG5H = 0xC0 #pragma config CONFIG6L = 0xF #pragma config CONFIG6H = 0xE0 #pragma config CONFIG7L = 0xF #pragma config CONFIG7H = 0x40
Thanks.
Consider yourself warnedI'd like my code to compile completely without warnings. Then I know everything is OK. Or at least it compiles OK.
| Thread starter | Similar threads | Forum | Replies | Date |
|---|---|---|---|---|
|
|
PIC18F25K22 & ADC problem | Microcontrollers | 4 |
| Similar threads |
|---|
| PIC18F25K22 & ADC problem |