Author |
Message |
Topic: Measuring MIPS with Output instructions |
eoinoc
Replies: 10
Views: 15570
|
Forum: General CCS C Discussion Posted: Mon Jun 13, 2011 6:17 am Subject: Measuring MIPS with Output instructions |
To measure you instruction speed use the repeat instruction
while(true)
{
#asm
repeat #0x3fff
btg .....
#endasm
}
This will give you a good burst of pin toggle at your ... |
Topic: PIC24: Strange External Interrupt Problem |
eoinoc
Replies: 1
Views: 5587
|
Forum: General CCS C Discussion Posted: Wed Dec 01, 2010 3:53 am Subject: PIC24: Strange External Interrupt Problem |
I have a strange issue using either Int external 1 or 2 in PIC24FJ64GB002.
As soon as I use #pin_select INT2/INT1=PIN_B5 the EXT1/2IF is permanently set.
Even if I try to clear the respective bi ... |
Topic: Clock Switch Issue |
eoinoc
Replies: 1
Views: 3920
|
Forum: General CCS C Discussion Posted: Mon Nov 15, 2010 2:23 pm Subject: Clock Switch Issue |
Just a quick update on this issue
I noticed that when I disable the TwoSpeedStartUp fuse the processor will not run when I select the FRC with PLL as the initial oscillator in the fuses, if i enabl ... |
Topic: Clock Switch Issue |
eoinoc
Replies: 1
Views: 3920
|
Forum: General CCS C Discussion Posted: Mon Nov 15, 2010 11:43 am Subject: Clock Switch Issue |
Hi all,
I have a problem with my clock switching operation and switching on the internal PLL for the PIC24FJ64GB002.
#define switch_16mips{\ #asm \ mov #0x0743,w1\ #endasm \ #asm \ mov.b x, ... |
Topic: Config error on 24F16KA101 |
eoinoc
Replies: 6
Views: 8993
|
Forum: General CCS C Discussion Posted: Tue Nov 09, 2010 3:23 am Subject: Config error on 24F16KA101 |
I have used that exact chip a lot and never received any errors about Configuration bits and I use an older version of CCS.
Although I have noticed that the MCLR fuse doesn't get set correctly when ... |
Topic: USB Speed Issue |
eoinoc
Replies: 0
Views: 2755
|
Forum: General CCS C Discussion Posted: Tue Nov 09, 2010 3:17 am Subject: USB Speed Issue |
Hi everyone,
I have a few queries about increasing my USB transfer speed. Here is my current setup
* PIC24FJ32GB002
* Bulk
* Full Speed (Internal Pull up on D+)
* 48MHz USB sourced from 8MHz ... |
Topic: Mplab Debug |
eoinoc
Replies: 3
Views: 5831
|
Forum: General CCS C Discussion Posted: Wed Oct 27, 2010 2:11 am Subject: Mplab Debug |
I solved the problem, went into build configuration and ticked a box under options which compiles for debug.
I think another fix is to place a large dummy array in RAM at the top of main, this push ... |
Topic: Mplab Debug |
eoinoc
Replies: 3
Views: 5831
|
Forum: General CCS C Discussion Posted: Tue Oct 26, 2010 8:32 am Subject: Mplab Debug |
Hi guys,
I have a few questions about using Mplab for debug.
My setup is Mplab 8.56 and CCS4.088 and ICD3.
I use Mplab IDE and CCS compiler to compile. My PIC is 24HJ32GP302.
If I set a brea ... |
Topic: Errors with PCD built-in crc functions |
eoinoc
Replies: 3
Views: 5217
|
Forum: General CCS C Discussion Posted: Mon Oct 25, 2010 7:12 pm Subject: Errors with PCD built-in crc functions |
Does anyone have an update on this topic?
I did some testing with the built in functions in CCS and the result returned from the CRC function which uses the hardware CRC in the PIC24HJ and the answ ... |
Topic: Use of RTC in PIC24 using PCD compiler |
eoinoc
Replies: 27
Views: 33321
|
Forum: General CCS C Discussion Posted: Sat Oct 23, 2010 8:28 am Subject: Use of RTC in PIC24 using PCD compiler |
Yes adding load capacitance seems to have helped tried lots of different combinations.
These Watch Xtals seem to need a really special PCB layout.
On my breadboard here I cant make it give an outp ... |
Topic: Use of RTC in PIC24 using PCD compiler |
eoinoc
Replies: 27
Views: 33321
|
Forum: General CCS C Discussion Posted: Fri Oct 22, 2010 6:32 am Subject: Use of RTC in PIC24 using PCD compiler |
Hi again, I am now using an external 32.768 xtal between SOSC and SOSC1 and I am seeing funny behaviour.
I have verified that the 32.768k xtal is oscillating on the SOSC pins.
When i look at the R ... |
Topic: Use of RTC in PIC24 using PCD compiler |
eoinoc
Replies: 27
Views: 33321
|
Forum: General CCS C Discussion Posted: Wed Oct 20, 2010 2:38 am Subject: Use of RTC in PIC24 using PCD compiler |
Yes you are right ! The fuse was not being set correctly and was using LPRC instead of SOSC |
Topic: Use of RTC in PIC24 using PCD compiler |
eoinoc
Replies: 27
Views: 33321
|
Forum: General CCS C Discussion Posted: Tue Oct 19, 2010 7:58 am Subject: Use of RTC in PIC24 using PCD compiler |
Thanks for the code it seems to work for me also.
Just a quick query, the RTC time seems to be way off.
I'm losing 5 seconds in ten minutes, as far as I can see the calibration bits in RTCGCAL onl ... |
Topic: SD Card Questions |
eoinoc
Replies: 1
Views: 2556
|
Forum: General CCS C Discussion Posted: Wed Oct 13, 2010 2:26 am Subject: SD Card Questions |
Hi there ,
I have a few questions with regard to writing to SD and FAT16 formatting.
I need to build a device which is capable of logging RF data to an SD card such as RSSI message length type etc ... |
Topic: PIC18f2450 |
eoinoc
Replies: 2
Views: 4174
|
Forum: General CCS C Discussion Posted: Thu Apr 30, 2009 8:36 am Subject: PIC18f2450 |
I put a 220nF cap to ground on pin14 and I also placed a 1,5k pullup to D+ pin16.
#include <18f2450.h>
#include "pic18_usb.h"
//#include "usb.h"
#use fast_io(b)
//#d ... |
|