Author |
Message |
Topic: Clock not starting |
pebbert9
Replies: 6
Views: 5719
|
Forum: General CCS C Discussion Posted: Fri May 31, 2024 3:37 pm Subject: Clock not starting |
I finally traced my problem to bad solder joints from our assembler.
There is minimal amounts of solder on some of the pins causing intermittent issues.
Thanks for your help. |
Topic: Clock not starting |
pebbert9
Replies: 6
Views: 5719
|
Forum: General CCS C Discussion Posted: Fri May 31, 2024 2:13 pm Subject: Clock not starting |
Unfortunately this particular chip doesn't have a PUT fuse.
It is taking my dc supply about 500-600 micro-seconds to get to 3.3V, does this seem like a reasonable amount of time? |
Topic: Clock not starting |
pebbert9
Replies: 6
Views: 5719
|
Forum: General CCS C Discussion Posted: Fri May 31, 2024 12:17 pm Subject: Clock not starting |
Hello,
About 3-5% of my parts are not starting the external oscillators properly. When I program them through CCSLOAD they do start. It's just when I re-apply power that they don't start ( no oscil ... |
Topic: dsPic33 Bootloader |
pebbert9
Replies: 1
Views: 10326
|
Forum: General CCS C Discussion Posted: Sat Jul 23, 2022 3:31 pm Subject: dsPic33 Bootloader |
Hello,
I am trying to go through the pcd bootloader example but when I try to upload the bootload file with SIOW it just times out after the first line sent.
Does anyone see an obvious mistake?
... |
Topic: Reading Unique Device Identifier (UDID) from dsPIC33 |
pebbert9
Replies: 4
Views: 18013
|
Forum: General CCS C Discussion Posted: Thu Dec 30, 2021 7:22 pm Subject: Reading Unique Device Identifier (UDID) from dsPIC33 |
It turns out that none of those commands work with this chip.
You can read the the code with this but you need to discard every 4th byte after reading
read_program_memory(0x801200, rData, 20& ... |
Topic: Reading Unique Device Identifier (UDID) from dsPIC33 |
pebbert9
Replies: 4
Views: 18013
|
Forum: General CCS C Discussion Posted: Thu Dec 23, 2021 6:20 pm Subject: Reading Unique Device Identifier (UDID) from dsPIC33 |
I need to read the Unique Device Identifier (UDID) from a DSPIC33CK32MP502.
The datasheet says the The UDID comprises five 24-bit program words which are stored in five read-only locations, located ... |
Topic: itoa and negative numbers |
pebbert9
Replies: 2
Views: 13084
|
Forum: General CCS C Discussion Posted: Wed Sep 15, 2021 5:39 am Subject: itoa and negative numbers |
Thank you!
Converting to int64 worked. |
Topic: itoa and negative numbers |
pebbert9
Replies: 2
Views: 13084
|
Forum: General CCS C Discussion Posted: Tue Sep 14, 2021 8:54 pm Subject: itoa and negative numbers |
Hello,
I am having trouble sending negative numbers out to a serial port. Does anyone see the issue with this test code?
I need to use an int48 and it works fine for positive numbers. I am using ... |
Topic: #USE TIMER and the ISR |
pebbert9
Replies: 12
Views: 32901
|
Forum: General CCS C Discussion Posted: Mon May 03, 2021 10:42 pm Subject: #USE TIMER and the ISR |
Thanks for the help, everything's working fine now. |
Topic: #USE TIMER and the ISR |
pebbert9
Replies: 12
Views: 32901
|
Forum: General CCS C Discussion Posted: Sun May 02, 2021 3:20 pm Subject: #USE TIMER and the ISR |
The manual is very vague on using the CCP module as a general purpose timer and there isn't much on the forum.
It looks like I would do something like this if I have an 8MHz external crystal (clock ... |
Topic: #USE TIMER and the ISR |
pebbert9
Replies: 12
Views: 32901
|
Forum: General CCS C Discussion Posted: Sun May 02, 2021 10:48 am Subject: #USE TIMER and the ISR |
I am for it's CAN controller
I just realized it has a CCP module which I've never used before that can act as a timer.
I need to research on how to set it up.... |
Topic: #USE TIMER and the ISR |
pebbert9
Replies: 12
Views: 32901
|
Forum: General CCS C Discussion Posted: Sun May 02, 2021 10:28 am Subject: #USE TIMER and the ISR |
I'm using the dsPIC33CK32MP502 which has only 1 timer.
Is there an ISR available to put code in if using the #USE TIMER(TIMER=1,TICK=.1ms,BITS=16, ISR directive?
I tried adding
#INT_TIMER1
... |
Topic: #USE TIMER and the ISR |
pebbert9
Replies: 12
Views: 32901
|
Forum: General CCS C Discussion Posted: Sat May 01, 2021 12:50 pm Subject: #USE TIMER and the ISR |
The chip I am using has only 1 timer and the Modbus library takes it over with a
#USE TIMER(TIMER=1,TICK=.1ms,BITS=16, ISR) command.
I need a second timer and I'd like to add my own counter insid ... |
Topic: Compiler error with modbus driver |
pebbert9
Replies: 2
Views: 12863
|
Forum: General CCS C Discussion Posted: Tue Sep 22, 2020 11:09 am Subject: Compiler error with modbus driver |
Thanks for your help.
The 18F25K83 does appear to be working now. |
Topic: Compiler error with modbus driver |
pebbert9
Replies: 2
Views: 12863
|
Forum: General CCS C Discussion Posted: Mon Sep 21, 2020 6:24 pm Subject: Compiler error with modbus driver |
Hello,
I am trying to get this sample code below to compile but it is giving me errors
Using 5.094
*** Error 28 "C:\Program Files (x86)\PICC\Drivers\modbus_phy_layer.h" Line 78(44,4 ... |
|