Author |
Message |
Topic: CAN-BUS bootloader |
Ttelmah
Replies: 4
Views: 212
|
Forum: General CCS C Discussion Posted: Sun Apr 27, 2025 10:24 am Subject: CAN-BUS bootloader |
The problem is that there is no standard for CAN on the PC.
Hence no example or driver program is possible, You have to work
our for yourself how to send the ,hex file. Talk to Peak. tell them what ... |
Topic: WANTED- CCS C compiler version 3.235 |
Ttelmah
Replies: 8
Views: 332
|
Forum: General CCS C Discussion Posted: Sun Apr 27, 2025 12:45 am Subject: WANTED- CCS C compiler version 3.235 |
That is very common when sending things. Some servers have rules that
are designed to stop all sorts of things. I often find it is easier to send
a link and put the file up onto an upload site.
We ... |
Topic: about WDT on pic18f45k40 |
Ttelmah
Replies: 1
Views: 136
|
Forum: General CCS C Discussion Posted: Sat Apr 26, 2025 10:31 am Subject: about WDT on pic18f45k40 |
You don't show us what 'information' you get after compiling.
Do you have a setup_wdt line in the code?. If so, this will override the
fuse clock selections. Basically the wdt timings can only be se ... |
Topic: 18F46K22: Wizard has HLVD (High/Low Voltage) grayed out |
Ttelmah
Replies: 3
Views: 231
|
Forum: General CCS C Discussion Posted: Fri Apr 25, 2025 12:08 am Subject: 18F46K22: Wizard has HLVD (High/Low Voltage) grayed out |
and honestly, don't use the wizard. It causes more problems than it fixes.
Learn to set things up for yourself. I can't think of anything it does really
well...  |
Topic: WANTED- CCS C compiler version 3.235 |
Ttelmah
Replies: 8
Views: 332
|
Forum: General CCS C Discussion Posted: Fri Apr 25, 2025 12:05 am Subject: WANTED- CCS C compiler version 3.235 |
Hi,
Sorry to have been slow, I was out yesterday. No, I have 3.226, and then
3.249. I didn't keep the versions between, since I have notes that they
all had major problems. There were only a few w ... |
Topic: CAN-BUS bootloader |
Ttelmah
Replies: 4
Views: 212
|
Forum: General CCS C Discussion Posted: Thu Apr 24, 2025 9:49 am Subject: CAN-BUS bootloader |
You'd have to look at what drivers are available for the Can host interface
that you intend to use. Many are devices like ethernet to Can, and some of
these do have basic emulator software to offer ... |
Topic: Using E1 as PWM output on 18F45K22 affects delay_ms() |
Ttelmah
Replies: 8
Views: 967
|
Forum: General CCS C Discussion Posted: Thu Apr 24, 2025 3:38 am Subject: Using E1 as PWM output on 18F45K22 affects delay_ms() |
Yes. If you look, he was originally talking about E1. This is merrily doable.
This is the heading to this thread.
However B0, just cannot give a hardware PWM.
'Read the data sheet' is a criti ... |
Topic: Why is my TXBE (Buffer Empty) flag not clearing? |
Ttelmah
Replies: 9
Views: 1398
|
Forum: General CCS C Discussion Posted: Thu Apr 24, 2025 1:11 am Subject: Why is my TXBE (Buffer Empty) flag not clearing? |
You do realise that when you write a byte to the SPI FIFO, if there is no
character already in the shift register, the byte immediately transfers to
this, and the FIFO will show as empty straight a ... |
Topic: I2C master and slave without interrupts … |
Ttelmah
Replies: 3
Views: 299
|
Forum: General CCS C Discussion Posted: Thu Apr 24, 2025 12:13 am Subject: I2C master and slave without interrupts … |
There is fundamentally nothing 'different' about doing a slave without
interrupts. Just poll the interrupt flag, and clear it when you handle it
'interrupt_active', and 'clear_interrupt'. The key th ... |
Topic: CANopen for CCS / PIC24? |
Ttelmah
Replies: 3
Views: 348
|
Forum: General CCS C Discussion Posted: Wed Apr 23, 2025 11:47 am Subject: CANopen for CCS / PIC24? |
https://github.com/CANopenNode/CANopenPIC
|
Topic: Sending multiple bytes by i2c |
Ttelmah
Replies: 6
Views: 526
|
Forum: General CCS C Discussion Posted: Wed Apr 23, 2025 6:52 am Subject: Sending multiple bytes by i2c |
Yes. It won't work if more than one byte is wanted.
It won't actually load a byte except for the first read. |
Topic: CANopen for CCS / PIC24? |
Ttelmah
Replies: 3
Views: 348
|
Forum: General CCS C Discussion Posted: Wed Apr 23, 2025 2:45 am Subject: CANopen for CCS / PIC24? |
Depends what you mean by 'available'. The drivers were updated a couple of years later, and have some support for a basic node. There is a GitHub
node available, that translates fairly easily. |
Topic: Sending multiple bytes by i2c |
Ttelmah
Replies: 6
Views: 526
|
Forum: General CCS C Discussion Posted: Wed Apr 23, 2025 2:35 am Subject: Sending multiple bytes by i2c |
There are 16 interrupts for each transaction, not 16 'requests'. In I2C, a
transaction begins with I2C starts, and ends with the stop. this is the complete
packet request. The PIC peripheral only h ... |
Topic: i2c between RaspberryPi and PIC |
Ttelmah
Replies: 6
Views: 747
|
Forum: General CCS C Discussion Posted: Sun Apr 20, 2025 11:02 am Subject: i2c between RaspberryPi and PIC |
Good.
Yes that is right.
Shows the importance of looking at what you used before....
The pont about streams is the same as for serial. On chips with multiple
I2C peripherals, or if yo ... |
Topic: i2c between RaspberryPi and PIC |
Ttelmah
Replies: 6
Views: 747
|
Forum: General CCS C Discussion Posted: Sun Apr 20, 2025 6:33 am Subject: i2c between RaspberryPi and PIC |
Shouldn't matter. Smbus, and I2C are 99% compatible. Smbus allows
lower voltage thresholds, and has a timeout on a transaction, but the basic
protocols are pretty much the same.
However he should ... |
|