TableView + JSON Tutorial – Part II

Integrating UITableView and UINavigationController To add the UINavigationController to the Apps, modify the AppDelegate.h as follow Objective-C @interface AppDelegate : UIResponder UINavigationControllerDelegate; { } @property (strong, nonatomic) UIWindow *window; @property (strong, nonatomic) UINavigationController *navigationController; 12345 @interface AppDelegate : UIResponder UINavigationControllerDelegate;{}@property (strong, nonatomic) UIWindow *window;@property (strong, nonatomic) UINavigationController *navigationController;   Then, in the AppDelegate.m Objective-C @synthesize ...

TableView + JSON Tutorial – Part I

Create New ViewController Project We will start with creating a blank project. From the XCode, choose to Create New Project. Then inside the template selection pane, choose to create a Single View Application. Click Next to continue.     The next pane is for you to enter your Project Name, Company Identifier, and the Device ...

Interrupt for XC8

Interrupt is an important element in PIC microcontroller. The interrupt mechanism provides the ability to preempted the processor from running the main program and switch its resources to the peripherals that introduce the interrupt. The flag is the signature for the microcontroller to identify which peripheral is calling the interrupt. In PIC microcontroller, the name ...

“Hello World” for XC8

In this tutorial we are going to turn on the LEDs connected to PORTB in the µStack Bootloader Board. #include <xc.h> void main (void) { TRISB = 0x00; while(1) { PORTB = 0xFF; } } 12345678 #include <xc.h> void main (void) {    TRISB = 0x00;    while(1) {        PORTB = 0xFF;    }}

Getting Started with µStack Bootloader

Burning binary file into PIC18F4550 using µStack Bootloader Board.

CodeOffset in MPLAB® X

CodeOffset in MPLAB® X
Typically, the Resset and Interrupt High and Interrupt Low Vector is located at address, 0×0000, 0×0008, and 0×0018, respectively. However, when a bootloader is burned into the microcontroller, these address spaces have been consumed by the firmware (Microchip USB Bootloader Firmware is located in the memory location from 0×000 till 0x0FFF). Therefore, we have to remapped ...

PIC18F4550 µStack Bootloader

PIC18F4550 µStack Bootloader
PIC18F4550 µStack Bootloader Features: - Automatically switching the power supply between USB or Battery - Dual power rating selector: +5v or +3.3v - 16 Digital I/O (PORTB and PORTD) - 6 Analog I/O (PORTA) - 2 PWM (CCP1 and CCP2) - 1 USART (TX and RX)

Adding Files into Project

Adding Files into Project
The files for a MPLAB® X Project is organized in various folders. Typically, we are working on either the Header Files (*.h) and the Source Files (*.c). To add a new file into the Project, Right Click on the corresponding folder, then choose the file that you want to create. In the New File windows, enter ...

Creating New Project

Creating New Project
To start a new project, click File > New Project Select the Microchip Embedded, and Standalone Project from the list Select the Devices used in the project accordingly. Select the Tool/Programmer available. In case of bootloader board, choose either as it doesn’t matter after all. Select the Compiler used. If XC8 is not in the ...

Installation Error: XC8 Compiler

Installation Error: XC8 Compiler
A warning is prompted when installing XC8 v1.12 to Windows 7 (64-bit), although the installation was completed after you click the OK button. According to Microsoft, this has something to do with registering the dll on a 64-bit system (http://support.microsoft.com/kb/282747). Resolution #1: Register is dll manually as suggested by Microsoft. If you still having problem ...