pic18

What is the best c compiler for the Pic18 micro [closed]

只谈情不闲聊 提交于 2019-12-03 02:54:07
Closed . This question is opinion-based. It is not currently accepting answers. Learn more . Want to improve this question? Update the question so it can be answered with facts and citations by editing this post . We are starting a new project based a microchip PIC18F252. What is the best 'c' compiler to use? tech PICC has always been reliable for me and it has had many years of development. Veynom Microchip C18 compiler : really the best and easiest to use. Perfect for professional use. HI-TECH : Used when Microchip does not work (it was for a PIC16). CCS SourceBoost PS: I myself worked on

Multithreading using C on PIC18

那年仲夏 提交于 2019-11-30 07:23:31
How does one create threads that run in parallel while programming PIC18 , since there is no OS? Don't use threads, use an event loop. The PIC18 is a small processor and an event loop based style means you don't have to keep many deep stacks hanging around. You need to write your code in terms of the event loop, but that is probably reasonable. If you do have some long running tasks, use timers are different interrupt priority levels to allow higher priority event loops to preempt lower priority event loops, and put appropriate types of work into the appropriate event queue. You could try

Multithreading using C on PIC18

亡梦爱人 提交于 2019-11-29 09:33:30
问题 How does one create threads that run in parallel while programming PIC18, since there is no OS? 回答1: Don't use threads, use an event loop. The PIC18 is a small processor and an event loop based style means you don't have to keep many deep stacks hanging around. You need to write your code in terms of the event loop, but that is probably reasonable. If you do have some long running tasks, use timers are different interrupt priority levels to allow higher priority event loops to preempt lower

Difference between PORT and LATCH on PIC 18F

空扰寡人 提交于 2019-11-27 18:48:17
I already read the datasheet and google but I still don't understand something. In my case, I set PIN RC6 of a PIC18F26K20 in INPUT mode: TRISCbits.TRISC6 = 1; Then I read the value with PORT and LATCH and I have different value! v1 = LATCbits.LATC6; v2 = PORTCbits.RC6; v1 gives me 0 where v2 gives 1. Is it normal? In which case we have to use PORT and in which case LATCH? Mark Rushakoff The latch is the output latch onto which values are written. The port is the voltage at the actual pin. There are a few situations where they can be different. The one that I've encountered most frequently is