Author |
Message |
Topic: pic24fj512gb606 not resetting on cpu_reset() and wdt reset |
Emmo
Replies: 4
Views: 12311
|
Forum: General CCS C Discussion Posted: Fri Jul 14, 2017 12:37 am Subject: pic24fj512gb606 not resetting on cpu_reset() and wdt reset |
Though this shouldn't apply:
7. Module: Reset
If a lower priority address error trap occurs while
a higher priority oscillator failure trap is being
processed, the TRAPR bit (RCON<15& ... |
Topic: pic24fj512gb606 not resetting on cpu_reset() and wdt reset |
Emmo
Replies: 4
Views: 12311
|
Forum: General CCS C Discussion Posted: Thu Jul 13, 2017 8:14 am Subject: pic24fj512gb606 not resetting on cpu_reset() and wdt reset |
Hello guys,
I once more need your help :-( I'm working with a pic24fj512gb606 and ccs compiler v5.073. I made a very very very simple program after I figure out, my pic is not resetting when I call ... |
Topic: [solved] IEEE float and Microchip float confusion |
Emmo
Replies: 4
Views: 13267
|
Forum: General CCS C Discussion Posted: Mon Jul 10, 2017 4:16 am Subject: [solved] IEEE float and Microchip float confusion |
All you need to do is use the same memory area for two types:
float fpval;
unsigned int32 intval;
#byte intval=fpval;
Then with your number stored in 'fpval', you can use 'intval' wh ... |
Topic: [solved] IEEE float and Microchip float confusion |
Emmo
Replies: 4
Views: 13267
|
Forum: General CCS C Discussion Posted: Fri Jul 07, 2017 8:34 am Subject: [solved] IEEE float and Microchip float confusion |
Hello everyone,
I've been a bit confused about float formats. I was working with a pic18f67j94 and ccs modbus library. I was reading out float values from a sensor and converted them to Microchip f ... |
Topic: #USE TOUCHPAD on internal RC@64MHz not working, PIC18F67J94 |
Emmo
Replies: 4
Views: 10208
|
Forum: General CCS C Discussion Posted: Wed Mar 08, 2017 1:55 am Subject: #USE TOUCHPAD on internal RC@64MHz not working, PIC18F67J94 |
Here is the solution. The ADC clock is too fast.
Easily add the following before calling TOUCHPAD_STATE(1); :
#byte ADCON3L=getenv("SFR:ADCON3L")
ADCON3L = 0x09;
Thanks to ... |
Topic: #USE TOUCHPAD on internal RC@64MHz not working, PIC18F67J94 |
Emmo
Replies: 4
Views: 10208
|
Forum: General CCS C Discussion Posted: Tue Mar 07, 2017 1:28 am Subject: #USE TOUCHPAD on internal RC@64MHz not working, PIC18F67J94 |
I'd suspect it just can't program the timer.
Try just dropping the scantime to 30mSec. The absolute maximum time that timer3 can get to, with the maximum prescaler, at 64Mhz, is just on 32mSec. It ... |
Topic: #USE TOUCHPAD on internal RC@64MHz not working, PIC18F67J94 |
Emmo
Replies: 4
Views: 10208
|
Forum: General CCS C Discussion Posted: Mon Mar 06, 2017 10:02 am Subject: #USE TOUCHPAD on internal RC@64MHz not working, PIC18F67J94 |
Hello guys,
I'm trying to get a touchpad working, but have no luck.
I'm using a PIC18F67J94 with internal RC and touchpad is connected to pin C2.
Compiler version: 5.070
Here is my code:
... |
Topic: [solved]major bug? USB CDC stops sending Data on PIC18F25K50 |
Emmo
Replies: 18
Views: 36185
|
Forum: General CCS C Discussion Posted: Tue Feb 21, 2017 5:34 am Subject: [solved]major bug? USB CDC stops sending Data on PIC18F25K50 |
finally I've got solved the problem!!!
It was really simple. Updated Compiler/IDE from 5.042 to 5.068 and now it is running very well. I've compared old with new hex file and the newer one i ... |
Topic: [solved]major bug? USB CDC stops sending Data on PIC18F25K50 |
Emmo
Replies: 18
Views: 36185
|
Forum: General CCS C Discussion Posted: Wed Feb 08, 2017 11:33 am Subject: [solved]major bug? USB CDC stops sending Data on PIC18F25K50 |
okay, got new chips with other version number (1624PT8) and other revision id today. They are not working, too. I'm getting crazy. If there is somebody who has got a PIC18F25K50-I/SO at home, please t ... |
Topic: [solved]major bug? USB CDC stops sending Data on PIC18F25K50 |
Emmo
Replies: 18
Views: 36185
|
Forum: General CCS C Discussion Posted: Tue Feb 07, 2017 9:41 am Subject: [solved]major bug? USB CDC stops sending Data on PIC18F25K50 |
Lets go over some of the things from that thread.
Do you have any floating inputs in your design ? This means pins
with (usually) no external connections that are uninitialized in your
progra ... |
Topic: [solved]major bug? USB CDC stops sending Data on PIC18F25K50 |
Emmo
Replies: 18
Views: 36185
|
Forum: General CCS C Discussion Posted: Mon Feb 06, 2017 2:42 am Subject: [solved]major bug? USB CDC stops sending Data on PIC18F25K50 |
Difference likely:
1) As you say soldering. However modern chips really are quite rugged.
2) Possibility of a micro whisker between legs, or flux causing more capacitance than expected.
3) Is the ... |
Topic: [solved]major bug? USB CDC stops sending Data on PIC18F25K50 |
Emmo
Replies: 18
Views: 36185
|
Forum: General CCS C Discussion Posted: Fri Feb 03, 2017 4:51 pm Subject: [solved]major bug? USB CDC stops sending Data on PIC18F25K50 |
You talk about the capacitor on Vusb. Presumably you are running the PIC at 5V?. If your PIC is running off 3.3v, then you should be using the LF version of the chip, and 3.3v, must be connected to th ... |
Topic: [solved]major bug? USB CDC stops sending Data on PIC18F25K50 |
Emmo
Replies: 18
Views: 36185
|
Forum: General CCS C Discussion Posted: Fri Feb 03, 2017 1:48 am Subject: [solved]major bug? USB CDC stops sending Data on PIC18F25K50 |
When I compile your program, I get this warning.
>>> Warning 207 "PCH_Test.c" Line 66(38,39): Code has no effect
It points to the line shown in bold below. You have a semi-co ... |
Topic: [solved]major bug? USB CDC stops sending Data on PIC18F25K50 |
Emmo
Replies: 18
Views: 36185
|
Forum: General CCS C Discussion Posted: Thu Feb 02, 2017 10:24 am Subject: [solved]major bug? USB CDC stops sending Data on PIC18F25K50 |
Hello guys,
I've got a little big problem when using PIC18F25K50 and sending data over cdc usb. I'm using the CCS USB CDC library which seems to running well, but after a short time, the PIC is sendi ... |
|