Author |
Message |
Topic: How to use #pin_select handling ANSEL, and slew rate control |
tinley
Replies: 10
Views: 86632
|
Forum: General CCS C Discussion Posted: Fri Aug 16, 2024 5:42 am Subject: How to use #pin_select handling ANSEL, and slew rate control |
I found an omission in the manual on this subject that could have saved me some time, so hopefully will save someone else the time if they read this.
I needed to have one software version that coul ... |
Topic: Fast trigonometric approximations |
tinley
Replies: 3
Views: 40809
|
Forum: Code Library Posted: Tue Jan 07, 2020 9:07 am Subject: Fast COS |
As it happens, I can also use your fast COS in the same project. But this did have a couple of bugs which are fixed in the following:
//A fast float approximation to sin over the range +/-PI
#de ... |
Topic: Fast trigonometric approximations |
tinley
Replies: 3
Views: 40809
|
Forum: Code Library Posted: Tue Jan 07, 2020 7:03 am Subject: Great code thanks |
Thanks Ttelmah. This code is exactly what I was looking for. You mention that the quadrants may not be correct. They don't match CCS atan2 function and I think you were right to suspect. I substituted ... |
Topic: Stepper Motors Library |
tinley
Replies: 3
Views: 35994
|
Forum: Code Library Posted: Fri Dec 20, 2019 10:19 am Subject: Thank you, minor bug |
Thank you for this code. Works really well for int8 steps, but the following line should be changed for more than 255 steps:
int16 counter1, counter2;
I bought a PIC Clicker and STEPPER 3 Click. ... |
Topic: Windows 10 USB CDC Drivers |
tinley
Replies: 8
Views: 23177
|
Forum: General CCS C Discussion Posted: Wed Oct 31, 2018 6:18 am Subject: Windows 10 USB CDC Drivers |
New project worked from scratch It was all to do with the legacy fuses that I was using. So apologise that I didn't try setting up a new project in the first place, but since this project runs ... |
Topic: Windows 10 USB CDC Drivers |
tinley
Replies: 8
Views: 23177
|
Forum: General CCS C Discussion Posted: Wed Oct 31, 2018 5:14 am Subject: Windows 10 USB CDC Drivers |
It is great to know that the drivers I have are working with Windows 10 with a similar PIC and presumably the same usb.c sub/libraries. So thank you very much for that.
I will start a project from ... |
Topic: Windows 10 USB CDC Drivers |
tinley
Replies: 8
Views: 23177
|
Forum: General CCS C Discussion Posted: Wed Oct 31, 2018 3:36 am Subject: Windows 10 USB CDC Drivers |
Yes, I did that after your first reply. Since my last post I have gone to a new Windows 10 machine which has never had a CCS CDC connected and also tried right click installing the same driver (dated ... |
Topic: Windows 10 USB CDC Drivers |
tinley
Replies: 8
Views: 23177
|
Forum: General CCS C Discussion Posted: Wed Oct 31, 2018 3:15 am Subject: Windows 10 USB CDC Drivers |
Thank you.
Unfortunately it seems our maintenance is out of date by 2 weeks, so I can't download the 5.081. I have just purchased a renewal but have to wait for them to process it, hopefully later ... |
Topic: Windows 10 USB CDC Drivers |
tinley
Replies: 8
Views: 23177
|
Forum: General CCS C Discussion Posted: Tue Oct 30, 2018 10:42 am Subject: Windows 10 USB CDC Drivers |
I have an existing project that has/does run on Windows XP, Vista & 7. I have tried on Windows 10 and it says 'Device cannot start (error code 10).
PIC18F2550
I have tried recompiling with 5 ... |
Topic: read_configuration_memory for User ID |
tinley
Replies: 8
Views: 21871
|
Forum: General CCS C Discussion Posted: Wed May 09, 2018 9:02 am Subject: read_configuration_memory for User ID |
Thank you, yes, agreed. And I had already said that in my original question!
What I needed, as others may need, is how to read the User ID from configuration memory!!!
Hopefully I have given the ... |
Topic: read_configuration_memory for User ID |
tinley
Replies: 8
Views: 21871
|
Forum: General CCS C Discussion Posted: Wed May 09, 2018 6:58 am Subject: read_configuration_memory for User ID |
So, I have finally sorted this out. For anyone else wanting to do the same thing, this works.
I want to manually type the ID into the IPE User ID, but you can test it with the following line in cod ... |
Topic: read_configuration_memory for User ID |
tinley
Replies: 8
Views: 21871
|
Forum: General CCS C Discussion Posted: Wed May 09, 2018 3:52 am Subject: read_configuration_memory for User ID |
Thank you for your continued help. Sorry if I am being a bit thick!
char array[8];
array=getenv("ID");
returns error 'lvalue is read only'? |
Topic: read_configuration_memory for User ID |
tinley
Replies: 8
Views: 21871
|
Forum: General CCS C Discussion Posted: Wed May 09, 2018 2:53 am Subject: read_configuration_memory for User ID |
Thank you for this further insight, but even after searching the manual for the function you suggest, I am none the wiser! Another case of very poor CCS documentation!
The documentation clearly sa ... |
Topic: read_configuration_memory for User ID |
tinley
Replies: 8
Views: 21871
|
Forum: General CCS C Discussion Posted: Fri May 04, 2018 10:05 am Subject: read_configuration_memory for User ID |
I am trying to read the User ID on a PIC18F2685.
According to the manuals...
read_configuration_memory([offset], ramPtr, n);
should read User ID if using the correct offset. But ... |
Topic: Internet Bootloader |
tinley
Replies: 17
Views: 40532
|
Forum: General CCS C Discussion Posted: Wed May 24, 2017 4:47 am Subject: Internet Bootloader |
Great, that’s all good. I think I had answered my own question from your website, which I have passed to a colleague.
We stuck with 10M because we are using drops of short lengths of non-twisted ... |
|