CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

Search found 1918 matches
CCS Forum Index
Author Message
  Topic: sd_mmc & PCD
newguy

Replies: 16
Views: 1025

PostForum: General CCS C Discussion   Posted: Thu Nov 28, 2024 2:03 pm   Subject: sd_mmc & PCD
Buy this: https://brushelectronics.com/software/fat-file-system-for-microchip-microcontrollers/

I have no affiliation with Brush Electronics; I am a customer. I can tell you that the driver works a ...
  Topic: Thoughts on terminal emulator for serial interface
newguy

Replies: 8
Views: 27180

PostForum: General CCS C Discussion   Posted: Sun Oct 06, 2024 10:26 am   Subject: Thoughts on terminal emulator for serial interface
I'm actually finishing up a VT100 user interface. I like RealTerm for the PC side.

I prefer a static screen as opposed to scrolling, but that's just me. VT100 command codes suit me fine.
  Topic: Best way to update Timer 2 to avoid unwelcome glitches
newguy

Replies: 8
Views: 2038

PostForum: General CCS C Discussion   Posted: Mon Sep 30, 2024 10:49 am   Subject: Best way to update Timer 2 to avoid unwelcome glitches
Then just load the period register (PR2) only.

#byte PR2 = getenv("SFR:PR2")

And inside your ISR, if appropriate,

PR2 = new_PR2_value;
  Topic: Best way to update Timer 2 to avoid unwelcome glitches
newguy

Replies: 8
Views: 2038

PostForum: General CCS C Discussion   Posted: Mon Sep 30, 2024 9:08 am   Subject: Best way to update Timer 2 to avoid unwelcome glitches
Enable the timer 2 interrupt. When a command to change settings is received, instead of changing the timer settings immediately, set a flag: new settings are available.

Inside the ISR, if that flag ...
  Topic: PIC24 IO state initialization built-in function issues?
newguy

Replies: 6
Views: 1953

PostForum: General CCS C Discussion   Posted: Tue Sep 24, 2024 2:06 pm   Subject: PIC24 IO state initialization built-in function issues?
Some thoughts. I tend not to embed bit manipulations inside other function calls with any compiler because of some painful memories from decades ago. That was the first thing that popped into my head: ...
  Topic: PIC18F14K50 - Port Pin B4 outputs High All the time.
newguy

Replies: 18
Views: 12405

PostForum: General CCS C Discussion   Posted: Mon Apr 29, 2024 9:46 am   Subject: PIC18F14K50 - Port Pin B4 outputs High All the time.
10K is a lot smaller than recommended. Minimum recommended is 22K...
10K was the recommended value back in the ICD2 days. These were able
to drive a lower resistor.
The help for the ICD-U80 recomme ...
  Topic: Interrupts are being disabled and I don't understand why.
newguy

Replies: 10
Views: 7574

PostForum: General CCS C Discussion   Posted: Wed Apr 24, 2024 9:35 am   Subject: Interrupts are being disabled and I don't understand why.
Do you have the watchdog enabled?
  Topic: Timing on a two speed program
newguy

Replies: 10
Views: 7481

PostForum: General CCS C Discussion   Posted: Mon Apr 22, 2024 12:57 pm   Subject: Timing on a two speed program
When high speed is invoked, implement some sort of timer ASAP. Clock source will be the 4MHz clock.

Simply use that timer to count.

When it's time to go back to sleep, calculate how many 31kHz t ...
  Topic: PIC24EP capacitive display suggestion?
newguy

Replies: 3
Views: 4173

PostForum: General CCS C Discussion   Posted: Thu Apr 04, 2024 12:42 pm   Subject: PIC24EP capacitive display suggestion?
Quite some time ago I cobbled together a 320 x 480 TFT display with capacitive touch screen overlay (qty 1000 cost was somewhere in the neighbourhood of $10) to an FTDI EVE touch screen controller and ...
  Topic: Header file losed
newguy

Replies: 6
Views: 5982

PostForum: General CCS C Discussion   Posted: Wed Mar 27, 2024 9:30 am   Subject: Header file losed
What is your compiler version?
  Topic: I2C slave no ACK bit help.
newguy

Replies: 10
Views: 10214

PostForum: General CCS C Discussion   Posted: Tue Mar 12, 2024 2:34 pm   Subject: I2C slave no ACK bit help.
Happens to us all. Glad you have it sorted.
  Topic: MCU Crash / restart- PIC24EP512GU810 RESTART_TRAP_CONFLICT ?
newguy

Replies: 16
Views: 14914

PostForum: General CCS C Discussion   Posted: Fri Mar 08, 2024 2:03 pm   Subject: MCU Crash / restart- PIC24EP512GU810 RESTART_TRAP_CONFLICT ?
Open/edit the device.h file (first line of your program) for your processor. Near the top will be a #nolist. Comment that out, save. The compiler will complain about editing that file and will ask if ...
  Topic: How I should define interrupt priorities on a PIC24F?
newguy

Replies: 14
Views: 10951

PostForum: General CCS C Discussion   Posted: Fri Mar 01, 2024 10:35 pm   Subject: How I should define interrupt priorities on a PIC24F?
I've created plenty of dsPIC33 based projects with tweaked interrupt priority levels. From memory I believe it's as simple as adding a "LEVEL = 5" to the ISR. It's in the manual.

There we ...
  Topic: How I should define interrupt priorities on a PIC24F?
newguy

Replies: 14
Views: 10951

PostForum: General CCS C Discussion   Posted: Fri Mar 01, 2024 9:29 pm   Subject: How I should define interrupt priorities on a PIC24F?
The glib answer would be to place the UART interrupt at a higher priority than the USB. But that may cause problems to pop up with the USB. It could also, squeezing a stress ball style, cause some new ...
  Topic: CCS registration file error
newguy

Replies: 4
Views: 5560

PostForum: General CCS C Discussion   Posted: Mon Feb 26, 2024 11:29 am   Subject: CCS registration file error
Check the C:\Program Files (x86)\PICC\Devices folder to see if that processor is present.

If it is, I've had issues in the past with a failing SSD and CCS. A clean reinstall would get it working fo ...
 
Page 1 of 128 Goto page 1, 2, 3 ... 126, 127, 128  Next
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group