- 3D-Druck Einstieg und Tipps         
RSS-Feed anzeigen

defineshot

SONY FB IR switch with a PIC12F675

Bewerten
Testing a basic infrared remote control technique is likely the most well-known way to learn how to use a microcontroller. It's also a very common example. The remote controls are on the couch table, and there's always something to turn on, like the TV lamp, the Christmas lights, or maybe one day I'll use it to send a robot to the fridge. As a line follower, it only needs to follow the well-worn way...
basket random
When I took the SIRCS test, I used it as a chance to practice writing small PICs in C. I found the best Mid-Range PIC C code guides online. Microchip gives away the XC8, which also works pretty well in free mode.
In my example project, I'm testing the SIRCS-12 and using buttons to switch between 4 channels and do manual control in case of an emergency or test.

Main.c SIRCS_IR_Switch

With XC8 V 1.32 in free mode, the program is no longer very small, but it now takes up about 350 words in the program flash. The PIC12675's flash is just a bit more than three quarters full.
This makes me feel a lot better about using C with small PICs. I think it's clear that mid-range PICs can also be written well in C. At least if you don't want to use up all the storage and performance space. And if so, speaking more than one language makes life better...

"SONY FB IR switch with a PIC12F675" bei Twitter speichern "SONY FB IR switch with a PIC12F675" bei Facebook speichern "SONY FB IR switch with a PIC12F675" bei Mister Wong speichern "SONY FB IR switch with a PIC12F675" bei YiGG.de speichern "SONY FB IR switch with a PIC12F675" bei Google speichern "SONY FB IR switch with a PIC12F675" bei del.icio.us speichern "SONY FB IR switch with a PIC12F675" bei Webnews speichern "SONY FB IR switch with a PIC12F675" bei My Yahoo speichern

Stichworte: - Stichworte bearbeiten
Kategorien
Kategorielos

Kommentare

  1. Avatar von vernakuhlman
    The program's size has increased to 350 words in the program flash when using XC8 V 1.32 in free mode, from a relatively tiny size before. geometry dash
  2. Avatar von thomasfrank
    Yes, there are other IR protocols besides SIRCS-12. Common alternatives include NEC and RC-5. These Buckshot Roulette protocols use different methods to encode data into the IR signal.
  3. Avatar von rangalegoofy
    Remote control applications are increasingly coreball developed and applied more widely. Easy to use devices. Research and learn about highly applicable technology products.

Solar Speicher und Akkus Tests