NAK IKLANKAN SESUATU atau LAPOR masalah forum? Emailkan di komunitigempakzhq@gmail.com

ATTENTION: "NEW POST REPLY" display "Error". >KLIK<<

+++ Do LIKE @ SHARE ARTICLE +++

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
PIC microcontroller
#1
apa dia PIC microcontroller? kepada yang amek kejuruteraan elektrik (mcm sya Big Grin) pasti sudah mengenali tentang benda ini.. ok disini saya nak tepek sket info tentang PIC nih.. Blush

OSCILLATOR TYPES

The PIC16F84 can be operated in four different oscillator modes. The user can program two configuration bits (FOSC1 and FOSC0) to select one of these four modes:

i. LP Low Power Crystal
ii. XT Crystal/Resonator
iii. HS High Speed Crystal/ResonatorRC Resistor/Capacitor

PIC clock generator

Oscillator circuit is used for providing a microcontroller with a clock. Clock is needed so that microcontroller could execute a program or program instructions. Most microcontrollers will operate with a crystal and two capacitors. Some will operate with resonators or with external resistor-capacitor pair. Some microcontrollers have built-in resistor-capacitor type oscillators and they do not require any external timing components.

SFR - Special Function Robot?

The Special Function Registers are used by the CPU and Peripheral functions to control the device operation. These registers are static RAM. The special function registers can be classified into two sets, core and peripheral. Those associated with the core functions are described in this section. Those related to the operation of the peripheral features are described in the section for that specific feature

GPR?

Each General Purpose Register (GPR) is 8-bits wide and is accessed either directly or indirectly through the FSR. The GPR addresses in Bank 1 are mapped to addresses in Bank 0. As an example, addressing location 0Ch or 8Ch will access the same GPR.

Select Bank in PIC memory

Banking requires the use of control bits for bank selection. These control bits are located in the STATUS Register. Instructions MOVWF and MOVF can move values from the W register to any location in the register file (“F”), and vice-versa. The entire data memory can be accessed either directly using the absolute address of each register file or indirectly through the File Select Register (FSR). Indirect addressing uses the present value of the RP0 bit for access into the banked areas of data memory.

Data memory is partitioned into two banks which contain the general purpose registers and the special function registers. Bank 0 is selected by clearing the RP0 bit (STATUS<5>). Setting the RP0 bit selects Bank 1. Each Bank extends up to 7Fh (128 bytes). The first twelve locations of each Bank are reserved for the Special Function Registers. The remainder is General Purpose Registers, implemented as static RAM.

Data Memory

The data memory is divided into two areas. The first is the Special Function Registers (SFR) area, while the second is the General Purpose Registers (GPR) area. The SFRs control the operation of the device. Portions of data memory are banked. This is for both the SFR area and the GPR area. The GPR area is banked to allow greater than 116 bytes of general purpose RAM. The banked areas of the SFR are for the registers that control the peripheral functions.

Program Memory

Program memory has been carried out in FLASH technology which makes it possible to program a microcontroller many times before it's installed into a device, and even after its installment if eventual changes in program or process parameters should occur. The size of program memory is 1024 locations with 14 bits width where locations zero and four are reserved for reset and interrupt vector. the first 1K x 14 (0000h-03FFh) are physically implemented (Figure 4.12). Accessing a location above the physically implemented address will cause a wraparound. For example, for locations 20h, 420h, 820h, C20h, 1020h, 1420h, 1820h, and 1C20h, the instruction will be the same. The RESET vector is at 0000h and the interrupt vector is at 0004h.

sumber: http://picinfoforu.blogspot.com/
Mari mendaftar ahli di Komuniti gempakZ~   Shy

** PENGUMUMAN PENTING: "NEW POST REPLY" BERMASALAH >>KLIK<<
** SUBSCRIBE Youtube Komuniti gempakZ >>KLIK<<
Reply


KoMuNiTi gempakZ on Facebook

Website Hit Counter

Forum Jump:


Users browsing this thread: 1 Guest(s)