Author |
Message |
Topic: problem with ADC in PIC18LF4620 |
mbyes
Replies: 4
Views: 7458
|
Forum: General CCS C Discussion Posted: Mon Dec 18, 2006 10:24 pm Subject: problem with ADC in PIC18LF4620 |
Hi friends.
Below source is me coding.
At every read_adc(), value incorrect.
This source is definitely correct?
Thank you.
#include
#device adc=10
#fuses H4, NOWDT, NOPROTECT, NOBROW ... |
Topic: Why not include to HEX? |
mbyes
Replies: 3
Views: 4952
|
Forum: General CCS C Discussion Posted: Sun Nov 26, 2006 7:43 pm Subject: Why not include to HEX? |
this code is compiled success.
but not include to the HEX file.
thank you.
const int16 Pattern[9216] =
{ //Novatek Logo
0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xFFF ... |
Topic: I2C Slave mode with START, STOP Interrupt enable |
mbyes
Replies: 2
Views: 7215
|
Forum: General CCS C Discussion Posted: Thu Aug 24, 2006 6:01 pm Subject: answer one's own question |
#include
#fuses H4,NOWDT,NOPROTECT,NOLVP,NOPUT,NOBROWNOUT // High Speed Clock for PLL, No Watch Dog Timer, No Code Protection, No Low Voltage P?, No Power Up Timer
#use delay(clock=40000000)
#use ... |
Topic: I2C Slave mode with START, STOP Interrupt enable |
mbyes
Replies: 2
Views: 7215
|
Forum: General CCS C Discussion Posted: Mon Aug 14, 2006 1:56 am Subject: I2C Slave mode with START, STOP Interrupt enable |
The Microchip PIC16F87XA has got a MSSP module. Bits SSPM(3 downto 0) in
SSPCON register configure the mode of the module. For I2C operation the
following options are available:
1111 = I2C slave, ... |
|