Author |
Message |
Topic: Best Known Method (BKM) for Multiple Interrupts |
john.ma
Replies: 9
Views: 11538
|
Forum: General CCS C Discussion Posted: Fri Mar 01, 2013 11:11 am Subject: Best Known Method (BKM) for Multiple Interrupts |
Thanks for the advice guys, I can take that on-board.
I'll monitor the system and see if there are any conflicts and then tune appropriately.
Its a PIC24FJ128 so unfortunately no DMA, but I think it ... |
Topic: Best Known Method (BKM) for Multiple Interrupts |
john.ma
Replies: 9
Views: 11538
|
Forum: General CCS C Discussion Posted: Fri Mar 01, 2013 3:58 am Subject: Best Known Method (BKM) for Multiple Interrupts |
The Input Capture and Output Compare aren't too difficult to deal with. As long as they get serviced before the next event which is every 10ms for OC and PPS (1s) for IC... the value is stored and HW ... |
Topic: Best Known Method (BKM) for Multiple Interrupts |
john.ma
Replies: 9
Views: 11538
|
Forum: General CCS C Discussion Posted: Tue Feb 26, 2013 5:47 am Subject: Best Known Method (BKM) for Multiple Interrupts |
Good Morning People,
I have a question related to multiple interrupts (5-6), potentially triggering simultaneously.
Some of them are time-critical and 2 of them occur quite regular (3-5ms) Occasio ... |
Topic: CCS and MPLAB |
john.ma
Replies: 3
Views: 5686
|
Forum: General CCS C Discussion Posted: Wed Feb 20, 2013 6:27 am Subject: CCS and MPLAB |
I know this was quite a while ago but I bumped into this issue today and noticed there is a workaround. It works in my case any how...
So for instance you have a structure or union such as:
un ... |
Topic: Writing to structs with variables of variable length |
john.ma
Replies: 6
Views: 10447
|
Forum: General CCS C Discussion Posted: Tue Feb 19, 2013 7:53 am Subject: Writing to structs with variables of variable length |
Thanking you Jeremiah,
In a nutshell I wont be able to use a struct to model the packet as shown in the diagram below?
http://www.meinberg.de/images/grafik/irig-b.jpg
As an alternative I was th ... |
Topic: Writing to structs with variables of variable length |
john.ma
Replies: 6
Views: 10447
|
Forum: General CCS C Discussion Posted: Tue Feb 19, 2013 7:11 am Subject: Writing to structs with variables of variable length |
Cut as much out as I could from the program:
For anyone who is interested, IRIG is a military & industrial timestamp
http://www.meinberg.de/german/info/irig.htm - they have nice diagrams
... |
Topic: Writing to structs with variables of variable length |
john.ma
Replies: 6
Views: 10447
|
Forum: General CCS C Discussion Posted: Tue Feb 19, 2013 6:43 am Subject: Writing to structs with variables of variable length |
Sorry about that, the fuses are...
#include <24F16KA102.h>
#fuses NODEBUG // Debug Mode. 1.11 NODEBUG No Debug mode for ICD
#fuses FRC_PLL // Crystal HS, 4xPLL -- FRC_P ... |
Topic: Writing to structs with variables of variable length |
john.ma
Replies: 6
Views: 10447
|
Forum: General CCS C Discussion Posted: Tue Feb 19, 2013 5:16 am Subject: Writing to structs with variables of variable length |
Hi Everyone,
Summary: PIC keeps restarting trying to write to a structure variable of 3 bits
I'm writing data to a structure as below:
struct Bx15_IRIGAnatomy {
// frame 1
int ref ... |
Topic: Interrupt based SPI routine - PIC24F - Issue receiving data |
john.ma
Replies: 21
Views: 36270
|
Forum: General CCS C Discussion Posted: Sun Feb 03, 2013 4:42 am Subject: Interrupt based SPI routine - PIC24F - Issue receiving data |
Just reread my previous post and realised my English was appalling, sorry about that...
1. Thanks a million guys... this would have taken me another week to figure out by myself. Really, thanks.
... |
Topic: Interrupt based SPI routine - PIC24F - Issue receiving data |
john.ma
Replies: 21
Views: 36270
|
Forum: General CCS C Discussion Posted: Sat Feb 02, 2013 6:12 pm Subject: Interrupt based SPI routine - PIC24F - Issue receiving data |
Thanks guys, semi good news... it works about 50-60% of the time now as shown below in the output log. I toggled the power to the circuit a few times to gather a few outputs.
Whats interesting is in ... |
Topic: Interrupt based SPI routine - PIC24F - Issue receiving data |
john.ma
Replies: 21
Views: 36270
|
Forum: General CCS C Discussion Posted: Sat Feb 02, 2013 12:20 pm Subject: Interrupt based SPI routine - PIC24F - Issue receiving data |
Hi people,
Thanks for the time and thought everyone.
I took PCM programmers advice regarding the SS_DISABLE flag and inserted a proper chip select line. Unfortunately had no effect on the genera ... |
Topic: Interrupt based SPI routine - PIC24F - Issue receiving data |
john.ma
Replies: 21
Views: 36270
|
Forum: General CCS C Discussion Posted: Fri Feb 01, 2013 3:51 am Subject: Interrupt based SPI routine - PIC24F - Issue receiving data |
Cut the code down to the bare minimum and its still exhibiting this behaviour. Oh my... if anybody has reference code working on PIC24F with interrupt I would extremely grateful
#include ... |
Topic: Interrupt based SPI routine - PIC24F - Issue receiving data |
john.ma
Replies: 21
Views: 36270
|
Forum: General CCS C Discussion Posted: Fri Feb 01, 2013 2:58 am Subject: Interrupt based SPI routine - PIC24F - Issue receiving data |
Hi jeremiah, thanks for the suggestion. Im worried that Ive been starring at code for 4-5 days now that im missing obvious things... so thanks, I really appreciate any thoughts
As for the printf ... |
Topic: Interrupt based SPI routine - PIC24F - Issue receiving data |
john.ma
Replies: 21
Views: 36270
|
Forum: General CCS C Discussion Posted: Thu Jan 31, 2013 12:14 pm Subject: Interrupt based SPI routine - PIC24F - Issue receiving data |
Hmm, I cant seem to see any reason why the program is misbehaving. I checked the config and stat flags which look fine nor are any errors raised
Has anyone by any chance had any success getting HW ... |
Topic: Interrupt based SPI routine - PIC24F - Issue receiving data |
john.ma
Replies: 21
Views: 36270
|
Forum: General CCS C Discussion Posted: Wed Jan 30, 2013 3:17 am Subject: Interrupt based SPI routine - PIC24F - Issue receiving data |
Also,
I used these threads for reference
spi problem with pic24F
http://www.ccsinfo.com/forum/viewtopic.php?t=43029
(Using the same chip as well...)
H/W SPI on a pic24
https://www.ccsinfo. ... |
|