Menu
  • HOME
  • TAGS

PIC 32 TTL communication

microcontroller,pic,mplab,ttl,pic32

Basically following things are important while setting up UART communication UART Baud rate UART pin initialization (TRIS bits in PIC) How many Data bits (7 or 8) How many Stop bits (1 or 1.5 or 2) Parity (No or Odd or Even) I can see all these things initialized in...

mplab xc8/16 builtin_constant_p

c,microchip,mplab,xc8,xc16

XC16 manual in google and out rolls: http://ww1.microchip.com/downloads/en/DeviceDoc/50002071E.pdf appendix G.

Generic Microcontroller Delay Function

c,delay,pic,mplab

This is referred to as busy waiting, a concept that just burns some CPU cycles thus "waiting" by keeping the CPU "busy" doing empty loops. You don't need to reset the function, it will do the same if called repeatedly. If you call it with N=3, it will repeat the...

Combine 4 chars into one unsigned long

c,microcontroller,mplab

This should work for you: (You just need to know the tricks) #include <stdio.h> int main() { char y[16]; unsigned long Timer ; y[12] = '1'; y[13] = '0'; y[14] = '1'; y[15] = '1'; Timer = y[12] - '0'; //- '0' To get the digit, here 1, and this...

Why is MPLAB X not compatible with RTOS

c,rtos,mplab

There is nothing to prevent RTOS development in MPLABX, lack of any integration features does not prevent use of an RTOS library; it is after all just a library like any other. What an RTOS does imply however is a slightly more complex runtime and debug environment, and in most...

Reading pic input on PIC12LF1552

c,pic,mplab

According to the datasheet http://www.alldatasheet.com/datasheet-pdf/pdf/504825/MICROCHIP/PIC12LF1552.html, on page 93 about the ANSELA register : "The ANSELA bits default to the Analog mode after Reset. To use any pins as digital general purpose or peripheral inputs, the corresponding ANSEL bits must be initialized to ‘0’ by user software." If you don't plan...

how to integrate git on mplab.x

git,mplab

There is this plugin available : nbgit-0.4-netbeans-6.9.nbm Installation by the plugin manager of MPLABX works ok Download link is : https://code.google.com/p/nbgit/downloads/list?q=0.4 We can also found example of using git in MPLABX in this blog : http://www.bwiegmann.de/index.php/en/home/29-blog/blog-en/47-git-in-mplab-x-2 It seems to work, on MPLABX 2.10...

Differences between org and code in Pic18 Assembly

assembly,mplab,pic18

I think it's for the linker to use. "code" creates a new code section at the given address and so the linker can either create a block (where available if no address is provided), export it to other modules or move it. Org, on the other hand, just dumps the...

Pointers on PIC32 device not matching expected values in the debugger

c,pointers,mplab

This is probably an optimization issue. Your compiler determined that your code doesn't actually do anything, so it didn't bother generating the code. Specifically, your code doesn't actually use the value you store in check. You can declare your pointer as volatile to force the compiler not to optimize it...