Author |
Message |
Topic: Timer 0 not running on PIC18F47K42 |
BartDelboo
Replies: 6
Views: 19735
|
Forum: General CCS C Discussion Posted: Tue Feb 27, 2018 1:22 am Subject: Timer 0 not running on PIC18F47K42 |
Ok, my fault. My small example program could not work without enabling interrupts . Now it's working.
Thanks!
I am going to pull my large program that worked for the PIC18F46K20 into piec ... |
Topic: I2C problems with PIC18F47K42 |
BartDelboo
Replies: 8
Views: 25308
|
Forum: General CCS C Discussion Posted: Mon Feb 26, 2018 7:40 am Subject: I2C problems with PIC18F47K42 |
Ok, i tried the code you suggested, but still no activity at all on the I2C bus.
If i look with my scope, i see that SDA and SCL lines remain high.
Some other ideas? Someone already tested I2C with ... |
Topic: Timer 0 not running on PIC18F47K42 |
BartDelboo
Replies: 6
Views: 19735
|
Forum: General CCS C Discussion Posted: Mon Feb 26, 2018 7:36 am Subject: Timer 0 not running on PIC18F47K42 (small test program) |
Thank you for your quick answer.
I made a small test program, that i think should work. But it does not work.
/*
* File: main.c
* Author: bartd
*
* Created on 26 februari 201 ... |
Topic: Timer 0 not running on PIC18F47K42 |
BartDelboo
Replies: 6
Views: 19735
|
Forum: General CCS C Discussion Posted: Mon Feb 26, 2018 4:32 am Subject: Timer 0 not running on PIC18F47K42 |
Hello,
On the PIC18F47K42, i am using timer 0 to update a display every 300ms.
I am upgrading from a PIC18F46K20 were it did work, but the timer was called RTCC. I changed the names to timer0, but ... |
Topic: I2C problems with PIC18F47K42 |
BartDelboo
Replies: 8
Views: 25308
|
Forum: General CCS C Discussion Posted: Mon Feb 26, 2018 4:25 am Subject: I2C problems with PIC18F47K42 |
Hello
I am having trouble with using the I2C HW of a pic18F47K42. If i use FORCE_SW, everything works. I am using following to configure the I2C:
//Select I2C with PPS
#PIN_SELECT SCL1IN = ... |
|