Severity: 8192
Message: Function mcrypt_get_iv_size() is deprecated
Filename: libraries/Encrypt.php
Line Number: 319
Severity: 8192
Message: Function mcrypt_create_iv() is deprecated
Filename: libraries/Encrypt.php
Line Number: 320
Severity: 8192
Message: Function mcrypt_encrypt() is deprecated
Filename: libraries/Encrypt.php
Line Number: 321
Severity: 8192
Message: Function mcrypt_get_iv_size() is deprecated
Filename: libraries/Encrypt.php
Line Number: 319
Severity: 8192
Message: Function mcrypt_create_iv() is deprecated
Filename: libraries/Encrypt.php
Line Number: 320
Severity: 8192
Message: Function mcrypt_encrypt() is deprecated
Filename: libraries/Encrypt.php
Line Number: 321
Severity: Notice
Message: Only variables should be passed by reference
Filename: models/fn_model.php
Line Number: 110
1. Introduction to PIC Easy R2
PIC Easy R2 is a product which was designed and manufactured by AT-COM giving users the convenience combine ATCBus with PIC18FJ Microchip microcontrollers series. The board supports to connect the computer via USB Full Speed V2.0, with a USB HID Bootloader that allows users to load firmware directly into the PIC microcontroller without any other programming kit. In addition, the PIC18F87J50 microcontroller with 48MHz processor speed combined with the Dual ATCBus Host Socket design maximizes the microcontroller's resources to meet the needs of programmers developing applications. Especially with convenient data output, PIC Easy R2 will bring you the most modern and sophisticated design inspiration.
2. Design Diagram of PIC Easy R2
3. Features of PIC Easy R2
- 5VDC via USB mini connector (6).
- 5VDC via Terminal Connector (8).
- 3.7V Li-Po battery through Connector (11).
- The reset button is used to reset the PIC18F87J50 microcontroller, when the reset button is pressed, the voltage at the MCLR pin of PIC18F87J50 changes from logic 1 to logic 0.
- 2 blue Led visual indicators or in case users need to debug code when programming. 2 Led connected to PIC18F4550 via RE0 and RE1 pins, positive when the output of RE0, RE1 at logic level 1.
- When the push button action changes the pins RB4, RB5 of the PIC from logic 1 to logic 0.
The board supports the USB HID Bootloader feature which allows direct programming of the PIC18F87J50 without programming kit. In addition, users can load programs for PIC18F87J50 using ICSP Header.
The Hid Bootloader is loaded into the Program Memory of the PIC18F87J50 in each PIC Easy R2 product. The Hid Bootloader uses the memory area of Program Memory from address 0x000 to 0x0FFF. This memory area is used for storage for the Hid Bootloader. So when a user writes an application running on PIC Easy R2, they need to declare the address for the Map Reset vector and the Map interrupts vector so that there is no memory overlap when the PIC18F87J50 starts. The user should change as follows:
//reserve boot block area (0x000-0x0FFF)
//map reset vector at 0x1000
//map interrupt vector from 0x01008 to 0x1018
This is done depending on the compiler that you use to compile into File.hex for your application such as MPLAB C18 Compiler, CCS Compiler, HI- TECH C Compiler ...
To enter the USB HID Bootloader mode of PIC Easy R2 we do the following: