Author |
Message |
Topic: What happened to the debug window? [Solved] |
Aileyus
Replies: 1
Views: 7370
|
Forum: General CCS C Discussion Posted: Fri Aug 25, 2017 1:26 pm Subject: What happened to the debug window? [Solved] |
Never mind. I figured it out. PCW sure has gone downhill over the past few years. What used to be a nice tool is now poorly behaved. |
Topic: What happened to the debug window? [Solved] |
Aileyus
Replies: 1
Views: 7370
|
Forum: General CCS C Discussion Posted: Fri Aug 25, 2017 1:15 pm Subject: What happened to the debug window? [Solved] |
I just came back to my PC and noticed the debug window in PCW is empty. I've tried closing and reloading the program and rebooting the PC. Nothing works. The debug window is just plain empty. How ... |
Topic: Funny struct behavior |
Aileyus
Replies: 13
Views: 28859
|
Forum: General CCS C Discussion Posted: Wed Jul 19, 2017 11:10 am Subject: Funny struct behavior |
There appears to be no way to call the variables in the watch list though.
Scratch that. When I type "data" into the watch list, I get the whole enchilada. I just wasn't expecting it to ... |
Topic: Funny struct behavior |
Aileyus
Replies: 13
Views: 28859
|
Forum: General CCS C Discussion Posted: Wed Jul 19, 2017 10:17 am Subject: Funny struct behavior |
I used the structs from RF's recommendation and Jeremiah's example and it works great. There appears to be no way to call the variables in the watch list though. It really doesn't matter as I can re ... |
Topic: Funny struct behavior |
Aileyus
Replies: 13
Views: 28859
|
Forum: General CCS C Discussion Posted: Tue Jul 18, 2017 3:17 pm Subject: Funny struct behavior |
RF:
With regards to moving the data gathering from my interrupt:
The only thing this code will ever do is capture data and write it to EEPROM at the end of a run. When power is removed, I'm hol ... |
Topic: Funny struct behavior |
Aileyus
Replies: 13
Views: 28859
|
Forum: General CCS C Discussion Posted: Tue Jul 18, 2017 9:39 am Subject: Funny struct behavior |
Thanks RF. I'll look at each of your suggestions and try to rewrite/re-architect my code around them.
Told you I was a hardware guy. |
Topic: Funny struct behavior |
Aileyus
Replies: 13
Views: 28859
|
Forum: General CCS C Discussion Posted: Tue Jul 18, 2017 7:15 am Subject: Funny struct behavior |
Should I report this as a compiler bug or is this likely a bug in my code? |
Topic: Funny struct behavior |
Aileyus
Replies: 13
Views: 28859
|
Forum: General CCS C Discussion Posted: Mon Jul 17, 2017 3:53 pm Subject: Funny struct behavior |
The issue is when the mot_curr variable is before the discretes variable,
the discretes variable seems to be ignored. Even during initialization it
doesn't get zero'd out.
How do you know th ... |
Topic: Funny struct behavior |
Aileyus
Replies: 13
Views: 28859
|
Forum: General CCS C Discussion Posted: Mon Jul 17, 2017 3:34 pm Subject: Funny struct behavior |
What is your PIC ?
I thought that information was already in the code but it's in the .h. Anyway I'm using PIC16F1829. I have added this info in the original post now.
Thanks
Incid ... |
Topic: Funny struct behavior |
Aileyus
Replies: 13
Views: 28859
|
Forum: General CCS C Discussion Posted: Mon Jul 17, 2017 3:02 pm Subject: Funny struct behavior |
Hi,
I'm using CCS PCW compiler version 5.070 and I'm seeing some very strange behavior with one of my structs. The struct is my data struct. The issue is when the mot_curr variable is before the ... |
Topic: Problem writing/reading 93AA86C EEPROM |
Aileyus
Replies: 20
Views: 33847
|
Forum: General CCS C Discussion Posted: Wed Mar 29, 2017 10:48 am Subject: Problem writing/reading 93AA86C EEPROM |
To Aileyus,
I made a late addition to my post just before you replied.
You probably didn't see it:
5. I noticed something from your first post. You have LEDs tacked on
the signal lines for the ... |
Topic: Problem writing/reading 93AA86C EEPROM |
Aileyus
Replies: 20
Views: 33847
|
Forum: General CCS C Discussion Posted: Wed Mar 29, 2017 10:42 am Subject: Problem writing/reading 93AA86C EEPROM |
Ding, ding, ding. We have a winner!
I corrected the problem with the clock being high when CS went high on write. I set the clock low and then set CS high. Now everything works as expected. I'm ... |
Topic: Problem writing/reading 93AA86C EEPROM |
Aileyus
Replies: 20
Views: 33847
|
Forum: General CCS C Discussion Posted: Wed Mar 29, 2017 10:37 am Subject: Problem writing/reading 93AA86C EEPROM |
It turns out that the clock is low when CS goes high for the EWEN and Read instructions. However, the clock is high and DI is high when CS goes high for the Write instruction. Being that CS is relev ... |
Topic: Problem writing/reading 93AA86C EEPROM |
Aileyus
Replies: 20
Views: 33847
|
Forum: General CCS C Discussion Posted: Wed Mar 29, 2017 9:58 am Subject: Problem writing/reading 93AA86C EEPROM |
Having reviewed the microwire format, I have gone back to the original driver and see why they did what they did. I now see the signals correct as per the mircowire format. The chip still does not r ... |
Topic: Problem writing/reading 93AA86C EEPROM |
Aileyus
Replies: 20
Views: 33847
|
Forum: General CCS C Discussion Posted: Wed Mar 29, 2017 8:25 am Subject: Problem writing/reading 93AA86C EEPROM |
I understand that. It should actually read and write to the chip though. I'm not really strongly exercising this code. I'm just trying to understand how to read and write to a new format and what t ... |
|