Author |
Message |
Topic: How to Draw a Degree Symbol (°) Using circle() in SSD1306 |
Ttelmah
Replies: 9
Views: 191
|
Forum: General CCS C Discussion Posted: Wed Mar 12, 2025 6:32 am Subject: How to Draw a Degree Symbol (°) Using circle() in SSD1306 |
I thought you were using my driver (in the code library), not the CCS one?. |
Topic: How to Draw a Degree Symbol (°) Using circle() in SSD1306 |
Ttelmah
Replies: 9
Views: 191
|
Forum: General CCS C Discussion Posted: Wed Mar 12, 2025 1:58 am Subject: How to Draw a Degree Symbol (°) Using circle() in SSD1306 |
Look at the define SH1106.
A lot of the displays called SSD1506, actually use this later chip.
This functions the same, but offsets the origin by a couple of pixels.
Just #define this before loa ... |
Topic: Working with multivector interrupts |
Ttelmah
Replies: 6
Views: 284
|
Forum: General CCS C Discussion Posted: Tue Mar 11, 2025 10:13 am Subject: Working with multivector interrupts |
Use the vector interrupt setting.
Then on the interrupt you want to service quickly, declare it as FAST.
Then add your own saving routines for the registers you use. |
Topic: PIC24FJ512GU/GL406 POR Issue |
Ttelmah
Replies: 2
Views: 56
|
Forum: General CCS C Discussion Posted: Tue Mar 11, 2025 8:58 am Subject: PIC24FJ512GU/GL406 POR Issue |
As Jay says, the most likely thing is power.
The PIC has a specification for the minimum rise time for the supply rail
for the internal POR to work. For the GU, look at DC17A in the electrical
char ... |
Topic: Servo accuracy |
Ttelmah
Replies: 6
Views: 209
|
Forum: General CCS C Discussion Posted: Mon Mar 10, 2025 11:20 am Subject: Servo accuracy |
So, why not generate a proper servo pulse, not a chain of narrower pulses?.
A servo does not really expect a chain of high frequency pulses as you show.
You must be being lucky and have a servo tha ... |
Topic: How to Draw a Degree Symbol (°) Using circle() in SSD1306 |
Ttelmah
Replies: 9
Views: 191
|
Forum: General CCS C Discussion Posted: Mon Mar 10, 2025 11:15 am Subject: How to Draw a Degree Symbol (°) Using circle() in SSD1306 |
The key is that the point about the small driver for this is it does not read
bytes back, only writes. This means if you do anything that crosses a byte
that already contains data, this data is los ... |
Topic: How to Draw a Degree Symbol (°) Using circle() in SSD1306 |
Ttelmah
Replies: 9
Views: 191
|
Forum: General CCS C Discussion Posted: Mon Mar 10, 2025 8:31 am Subject: How to Draw a Degree Symbol (°) Using circle() in SSD1306 |
Are you using the smaller font or the larger font?.
In ether case just change a character you are not using the font table to
give the degree character. Perhaps underline, or ^. Or if you are not u ... |
Topic: Servo accuracy |
Ttelmah
Replies: 6
Views: 209
|
Forum: General CCS C Discussion Posted: Mon Mar 10, 2025 4:58 am Subject: Servo accuracy |
You talk about servo pulses, but then talk about counting on the timer.
It sounds as if you are possibly using overflow counts of the timer to time your
output pulse?. However timer1 is a 16bit ti ... |
Topic: Servo accuracy |
Ttelmah
Replies: 6
Views: 209
|
Forum: General CCS C Discussion Posted: Mon Mar 10, 2025 2:11 am Subject: Servo accuracy |
You don't tell us how you are actually doing this?.
This obviously affects how fine adjustment can be.
There are more sophisticated chips that have extra features to speed up
things like this, but ... |
Topic: Working with multivector interrupts |
Ttelmah
Replies: 6
Views: 284
|
Forum: General CCS C Discussion Posted: Mon Mar 10, 2025 1:56 am Subject: Working with multivector interrupts |
99% of PIC18's do not support multi-vector interrupts (except for the high/
This is why it is such a rare thing.
The keyword on the PIC's that do support it is simple:
#DEVICE VECTOR_INTS
Thi ... |
Topic: Manual PWM set up works but #use pwm() does not; Why? |
Ttelmah
Replies: 6
Views: 312
|
Forum: General CCS C Discussion Posted: Sun Mar 09, 2025 3:03 am Subject: Manual PWM set up works but #use pwm() does not; Why? |
I have emailed support pointing this out, and suggesting that they should
either include support for APFCON in the #USE operation, or amend the
manual to say that the relocatable pin support is on ... |
Topic: Manual PWM set up works but #use pwm() does not; Why? |
Ttelmah
Replies: 6
Views: 312
|
Forum: General CCS C Discussion Posted: Sat Mar 08, 2025 1:25 pm Subject: Manual PWM set up works but #use pwm() does not; Why? |
Yes. This sets the TRIS. By default the pin is an input. Forgot to say you
needed to set the tris.
I must admit I think it might be worth asking CCS if they could add support
for APFCON to the # ... |
Topic: Manual PWM set up works but #use pwm() does not; Why? |
Ttelmah
Replies: 6
Views: 312
|
Forum: General CCS C Discussion Posted: Sat Mar 08, 2025 12:27 pm Subject: Manual PWM set up works but #use pwm() does not; Why? |
It is a question of detail in the wording.
This chip has single alternate pins, not 'remappable' pins.
The manual is talking about chips that support PPS, and can map the
pins to a lot of location ... |
Topic: Manual PWM set up works but #use pwm() does not; Why? |
Ttelmah
Replies: 6
Views: 312
|
Forum: General CCS C Discussion Posted: Sat Mar 08, 2025 5:04 am Subject: Manual PWM set up works but #use pwm() does not; Why? |
On the duty cycle, your calculations are wrong. 199 for the PR2, means the
PWM counts 0 to 799. So 50% would be 399/400 0x18F/0x190. Exactly what
you are seeing......
Remember the PWM counts to ( ... |
Topic: WARNIGS for using USB library |
Ttelmah
Replies: 7
Views: 435
|
Forum: General CCS C Discussion Posted: Fri Mar 07, 2025 12:31 pm Subject: WARNIGS for using USB library |
Exactly.
It amazed me too. |
|