MikroElektronika PIC Microcontrollers PIC16 Spezifikationen

Stöbern Sie online oder laden Sie Spezifikationen nach PC / Workstation Barebones MikroElektronika PIC Microcontrollers PIC16 herunter. mikroElektronika PIC Microcontrollers PIC16 Specifications Benutzerhandbuch

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 266
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 0
mikroElektronika | Free Online Book | PIC Microcontrollers | Introduction: World of Microcontrollers
TOC
Introduction
Ch. 1
Ch. 2
Ch. 3
Ch. 4
Ch. 5
Ch. 6
Ch. 7
Ch. 8
Ch. 9
App. A
App. B
App. C
Introduction: World of microcontrollers
The situation we find ourselves today in the field of microcontrollers had its beginnings in the development of technology of integrated circuits.
This development has enabled us to store hundreds of thousands of transistors into one chip. That was a precondition for the manufacture of
microprocessors. The first computers were made by adding external peripherals such as memory, input/output lines, timers and others to it.
Further increasing of package density resulted in creating an integrated circuit which contained both processor and peripherals. That is how the
first chip containing a microcomputer later known as a microcontroller has developed.
This is how it all got started...
In the year 1969, a team of Japanese engineers from BUSICOM came to the USA with a request that a few integrated circuits for calculators were
to be designed according to their projects. The request was sent to INTEL and Marcian Hoff was in charge of the project there. Having experience
working with a computer, the PDP8, he came up with an idea to suggest fundamentally different solutions instead of the suggested design. This
solution presumed that the operation of integrated circuit was to be determined by the program stored in the circuit itself. It meant that
configuration would be simpler, but it would require far more memory than the project proposed by Japanese engineers. After a while, even
though the Japanese engineers were trying to find an easier solution, Marcian’s idea won and the first microprocessor was born. A major help
with turning an idea into a ready-to-use product was Federico Faggin. Nine months after hiring him, Intel succeeded in developing such a product
from its original concept. In 1971 Intel obtained the right to sell this integrated circuit. Before that Intel bought the license from BUSICOM which
had no idea what a treasure it had. During that year, a microprocessor called the 4004 appeared on the market. That was the first 4-bit
microprocessor with the speed of 6000 operations per second. Not long after that, an American company CTC requested from Intel and Texas
Instruments to manufacture an 8-bit microprocessor to be applied in terminals. Even though CTC gave up this project, Intel and Texas
Instruments kept working on the microprocessor and in April 1972 the first 8-bit microprocessor called the 8008 appeared on the market. It was
able to address 16Kb of memory, had 45 instructions and the speed of 300 000 operations per second. That microprocessor was the predecessor
http://www.mikroe.com/en/books/picmcubook/ch0/ (1 of 30)5/3/2009 11:28:39 AM
Seitenansicht 0
1 2 3 4 5 6 ... 265 266

Inhaltsverzeichnis

Seite 1

mikroElektronika | Free Online Book | PIC Microcontrollers | Introduction: World of Microcontrollers● TOC● Introduction● Ch. 1● Ch. 2●

Seite 2

mikroElektronika | Free Online Book | PIC Microcontrollers | Introduction: World of MicrocontrollersWhen used in a program, a logic AND operation is p

Seite 3 - BASIC CONCEPT

mikroElektronika | Free Online Book | PIC Microcontrollers | Chapter 6: Serial Communication ModulesSENDB - Send Break Character bit is only used in a

Seite 4

mikroElektronika | Free Online Book | PIC Microcontrollers | Chapter 6: Serial Communication Modules● 1 - Enables continuous receive until the CRE

Seite 5

mikroElektronika | Free Online Book | PIC Microcontrollers | Chapter 6: Serial Communication Modulesand BRGH16 bits in order to obtain some of the sta

Seite 6

mikroElektronika | Free Online Book | PIC Microcontrollers | Chapter 6: Serial Communication Modules http://www.mikroe.com/en/books/picmcubook/ch6/

Seite 7

mikroElektronika | Free Online Book | PIC Microcontrollers | Chapter 6: Serial Communication Modules Table 6-2 Determining Baud RateBAUDCTL Register

Seite 8

mikroElektronika | Free Online Book | PIC Microcontrollers | Chapter 6: Serial Communication Modules Fig. 6-11 BAUDCTL RegisterABDOVF - Auto-Baud Dete

Seite 9 - Fig. 0-8 High and Low nibbles

mikroElektronika | Free Online Book | PIC Microcontrollers | Chapter 6: Serial Communication Modules5. If needed the bit TXEN causes an interrupt, th

Seite 10

mikroElektronika | Free Online Book | PIC Microcontrollers | Chapter 6: Serial Communication Modules Fig.6-12 MSSP ModuleSPI ModeThe SPI mode allows 8

Seite 11

mikroElektronika | Free Online Book | PIC Microcontrollers | Chapter 6: Serial Communication Modules Fig. 6-13 SPI ModeAs seen in figure 6-14, the cen

Seite 12 - Fig. 0-17 Register

mikroElektronika | Free Online Book | PIC Microcontrollers | Chapter 6: Serial Communication ModulesStep 1.Data to transmit should be written to the b

Seite 13

mikroElektronika | Free Online Book | PIC Microcontrollers | Introduction: World of MicrocontrollersIf a program, logic NOT operation is performed on

Seite 14

mikroElektronika | Free Online Book | PIC Microcontrollers | Chapter 6: Serial Communication Modulesfrequency (so called high-speed I²C bus), but the

Seite 15

mikroElektronika | Free Online Book | PIC Microcontrollers | Chapter 6: Serial Communication Modules Fig. 6-21 Data TransferFigure below shows the blo

Seite 16

mikroElektronika | Free Online Book | PIC Microcontrollers | Chapter 6: Serial Communication Modules Fig. 6-22 MSSP Block Diagram in I²C ModeThe MSSP

Seite 17

mikroElektronika | Free Online Book | PIC Microcontrollers | Chapter 6: Serial Communication ModulesCKP = 1:● 1 - Data is transmitted on falling e

Seite 18

mikroElektronika | Free Online Book | PIC Microcontrollers | Chapter 6: Serial Communication ModulesFig. 6-24 SSPCON RegisterWCOL Write Collision Dete

Seite 19

mikroElektronika | Free Online Book | PIC Microcontrollers | Chapter 6: Serial Communication ModulesSSPCON2 Register Fig. 6-25 SSPCON2 RegisterGCEN -

Seite 20

mikroElektronika | Free Online Book | PIC Microcontrollers | Chapter 6: Serial Communication ModulesSEN - START Condition Enabled/Stretch Enabled bitI

Seite 21 - Fig. 0-27 Timers/Counters

mikroElektronika | Free Online Book | PIC Microcontrollers | Chapter 6: Serial Communication ModulesSince maximum 112 integrated circuits may simultan

Seite 22 - Fig. 0-28 Timer Operation

mikroElektronika | Free Online Book | PIC Microcontrollers | Chapter 6: Serial Communication Modules Fig. 6-30 Data Reception in I²C Master ModeStart

Seite 23

mikroElektronika | Free Online Book | PIC Microcontrollers | Chapter 6: Serial Communication Modules Fig. 6-31 Baud Rate GeneratorUseful notes ...When

Seite 24

mikroElektronika | Free Online Book | PIC Microcontrollers | Introduction: World of Microcontrollers Fig. 0-17 RegisterSpecial Function Register In ad

Seite 25 - Fig. 0-31 Watchdog Timer

mikroElektronika | Free Online Book | PIC Microcontrollers | Chapter 6: Serial Communication ModulesIn Short: In order to establish serial communicati

Seite 26 - Internal Architecture

mikroElektronika | Free Online Book | PIC Microcontrollers | Chapter 7: Analog Modules● TOC● Introduction● Ch. 1● Ch. 2● Ch. 3●

Seite 27

mikroElektronika | Free Online Book | PIC Microcontrollers | Chapter 7: Analog Modules Fig. 7-1 ADC Mode and RegistersThe module is under the control

Seite 28 - How to make the right choice

mikroElektronika | Free Online Book | PIC Microcontrollers | Chapter 7: Analog Modules Fig. 7-2 ADRESH and ADRESL RegistersA/D Acquisition Requirement

Seite 29

mikroElektronika | Free Online Book | PIC Microcontrollers | Chapter 7: Analog Modules● Roughly speaking, voltage measurement in the converter is

Seite 30

mikroElektronika | Free Online Book | PIC Microcontrollers | Chapter 7: Analog ModulesCHS3 CHS2 CHS1 CHS0 Channel Pin0 0 0 0 0 RA0/AN00 0 0 1 1 RA1/AN

Seite 31

mikroElektronika | Free Online Book | PIC Microcontrollers | Chapter 7: Analog Modules● 1 - Negative voltage reference is applied on the Vref- pin

Seite 32

mikroElektronika | Free Online Book | PIC Microcontrollers | Chapter 7: Analog Modules Fig. 7-6 Analog Comparator● When the analog voltage at Vin-

Seite 33

mikroElektronika | Free Online Book | PIC Microcontrollers | Chapter 7: Analog Modules Fig. 7-7 VREFThe comparator voltage reference has 2 ranges with

Seite 34 - ● AN3 Third analog input

mikroElektronika | Free Online Book | PIC Microcontrollers | Chapter 7: Analog Modules Fig. 7-8 CM1CON0 RegsiterBits of this register are in control o

Seite 35 - Table 1-1 Pin Assignment

mikroElektronika | Free Online Book | PIC Microcontrollers | Introduction: World of Microcontrollers Fig. 0-18 Special Function RegisterInput/Output P

Seite 36

mikroElektronika | Free Online Book | PIC Microcontrollers | Chapter 7: Analog Modules● 1 - Comparator C1OUT output is connected to the C1OUT pin.

Seite 37 - Fig. 1-4 CPU Memory

mikroElektronika | Free Online Book | PIC Microcontrollers | Chapter 7: Analog Modules Fig. 7-11 Comparator C2 Schematic DiagramC2ON - Comparator C2 E

Seite 38 - Fig. 1-5 ROM Memory Consept

mikroElektronika | Free Online Book | PIC Microcontrollers | Chapter 7: Analog ModulesC2CH1 C2CH0 Comparator C2Vin- input0 0 Input C2Vin- is connected

Seite 39

mikroElektronika | Free Online Book | PIC Microcontrollers | Chapter 7: Analog Modules Fig. 7-13 VRCON RegisterVREN Comparator C1 Voltage Reference En

Seite 40 - Table 1-2 Address Banks

mikroElektronika | Free Online Book | PIC Microcontrollers | Chapter 7: Analog ModulesFormula used to calculate voltage reference:VRR = 1 (low range)C

Seite 41 - Table 1-3 SFR Bank 0

mikroElektronika | Free Online Book | PIC Microcontrollers | Chapter 8: Other MCU's Circuits● TOC● Introduction● Ch. 1● Ch. 2●

Seite 42 - Table 1-4 SFR Bank 1

mikroElektronika | Free Online Book | PIC Microcontrollers | Chapter 8: Other MCU's CircuitsAn External oscillator is installed within the microc

Seite 43 - Table 1-6 SFR Bank 3

mikroElektronika | Free Online Book | PIC Microcontrollers | Chapter 8: Other MCU's CircuitsHTS - HFINTOSC Status bit (8 MHz - 125 kHz) indicates

Seite 44 - Fig.1-7 Interrupt System

mikroElektronika | Free Online Book | PIC Microcontrollers | Chapter 8: Other MCU's Circuits Fig.8-3 PICflash ProgramExternal oscillator in EC mo

Seite 45 - Chapter 2: Core SFRs

mikroElektronika | Free Online Book | PIC Microcontrollers | Chapter 8: Other MCU's Circuits Fig. 8-6 Two Types of External OscillatorsThe LP, XT

Seite 46 - Table 2-1

mikroElektronika | Free Online Book | PIC Microcontrollers | Introduction: World of Microcontrollers Fig. 0-19 Input / Output portsOne of the more imp

Seite 47

mikroElektronika | Free Online Book | PIC Microcontrollers | Chapter 8: Other MCU's Circuits Fig.8-8 Ceramic ResonatorCeramic resonators are by t

Seite 48 - Table 2-2

mikroElektronika | Free Online Book | PIC Microcontrollers | Chapter 8: Other MCU's CircuitsSimilar to the external oscillator, the internal one

Seite 49 - Fig. 2-10 INTCON Register

mikroElektronika | Free Online Book | PIC Microcontrollers | Chapter 8: Other MCU's Circuits Fig. 8-13 Internal Oscillator settings2. The low-fre

Seite 50 - Fig. 2-11 PIE1 register

mikroElektronika | Free Online Book | PIC Microcontrollers | Chapter 8: Other MCU's Circuits Fig.8-14 Enable Int-Ext SwitchoverFail-Safe Clock Mo

Seite 51 - Fig. 2-12 PIE2 Register

mikroElektronika | Free Online Book | PIC Microcontrollers | Chapter 8: Other MCU's Circuits Fig. 8-15 Fail-Safe Clock MonitorThe fail-safe clock

Seite 52 - Fig. 2-13 PIR1 Register

mikroElektronika | Free Online Book | PIC Microcontrollers | Chapter 8: Other MCU's Circuits Fig. 8-16 Enabling Fail-Safe Clock MonitorOSCTUNE Re

Seite 53 - Fig. 2-14 PIR2 register

mikroElektronika | Free Online Book | PIC Microcontrollers | Chapter 8: Other MCU's Circuits● EECON1 (control register); ● EECON2 (contro

Seite 54 - Fig. 2-15 PCON register

mikroElektronika | Free Online Book | PIC Microcontrollers | Chapter 8: Other MCU's CircuitsIn order to read data EEPROM memory, follow the proce

Seite 55 - Fig. 2-17 PCLATH Registers

mikroElektronika | Free Online Book | PIC Microcontrollers | Chapter 8: Other MCU's CircuitsWhen power supply voltage reaches 1.2 - 1.7V, a circu

Seite 56

mikroElektronika | Free Online Book | PIC Microcontrollers | Chapter 8: Other MCU's CircuitsThis is a special kind of Brown-out reset which occur

Seite 57 - Chapter 3: I/O Ports

mikroElektronika | Free Online Book | PIC Microcontrollers | Introduction: World of Microcontrollersdrawers. Suppose, the drawers are clearly marked s

Seite 58 - Port A and TRISA Register

mikroElektronika | Free Online Book | PIC Microcontrollers | Chapter 9: Instruction Set● TOC● Introduction● Ch. 1● Ch. 2● Ch. 3●

Seite 59 - Fig. 3-3 ULPWU Unit

mikroElektronika | Free Online Book | PIC Microcontrollers | Chapter 9: Instruction SetArithmetic-logic InstructionsADDLW k Add W and constant W+k -&g

Seite 60 - Fig. 3-4 Sleep Mode

mikroElektronika | Free Online Book | PIC Microcontrollers | Chapter 9: Instruction SetRETFIE Return from interrupt TOS -> PC, 1 -> GIE 2Other i

Seite 61 - Fig. 3-7 Pull-up resistors

mikroElektronika | Free Online Book | PIC Microcontrollers | Chapter 9: Instruction SetThe PIC16F887 executes instructions GOTO, CALL, RETURN in the s

Seite 62 - Fig. 3-9 Keyboard Example

mikroElektronika | Free Online Book | PIC Microcontrollers | Chapter 9: Instruction Setf - Any memory location (register);W - Working register (accumu

Seite 63 - Fig. 3-10 ICSP Connection

mikroElektronika | Free Online Book | PIC Microcontrollers | Chapter 9: Instruction SetIf d = w or d = 0 the result is stored in the W register.If d =

Seite 64

mikroElektronika | Free Online Book | PIC Microcontrollers | Chapter 9: Instruction SetOperation: (W) AND k -> WOperand: 0 ≤ k ≤ 255Status affected

Seite 65

mikroElektronika | Free Online Book | PIC Microcontrollers | Chapter 9: Instruction SetOperation: (W) AND (f) -> dOperand: 0 ≤ f ≤ 127, d[0,1]Statu

Seite 66

mikroElektronika | Free Online Book | PIC Microcontrollers | Chapter 9: Instruction SetOperand: 0 ≤ f ≤ 127, 0 ≤ b ≤ 7Status affected: -Number of cycl

Seite 67 - Chapter 4: Timers

mikroElektronika | Free Online Book | PIC Microcontrollers | Chapter 9: Instruction SetStatus affected: -Number of cycles: 1EXAMPLE 1:...[label] BSF

Seite 68 - Fig. 4-2 OPTION_REG Register

mikroElektronika | Free Online Book | PIC Microcontrollers | Introduction: World of MicrocontrollersUV Erasable Programmable ROM (UV EPROM). Both the

Seite 69

mikroElektronika | Free Online Book | PIC Microcontrollers | Chapter 9: Instruction SetNumber of cycles: 1 or 2 depending on bit bEXAMPLE: ...L

Seite 70

mikroElektronika | Free Online Book | PIC Microcontrollers | Chapter 9: Instruction SetLAB_01After instruction:- if bit 3 of REG is cleared, program c

Seite 71 - Fig. 4-5 Timer TMR1

mikroElektronika | Free Online Book | PIC Microcontrollers | Chapter 9: Instruction SetOperation: 0 -> fOperand: 0 ≤ f ≤ 127Status affected: ZNumbe

Seite 72

mikroElektronika | Free Online Book | PIC Microcontrollers | Chapter 9: Instruction SetEXAMPLE 1:...[label] CLRWBefore instruction: W=0x55After instr

Seite 73 - Fig. 4-8 TMR1 in timer mode

mikroElektronika | Free Online Book | PIC Microcontrollers | Chapter 9: Instruction SetSyntax: [label] COMF f, dDescription: The content of register f

Seite 74

mikroElektronika | Free Online Book | PIC Microcontrollers | Chapter 9: Instruction SetSyntax: [label] DECF f, dDescription: Decrement register f by o

Seite 75 - Fig. 4-12 T1CON Register

mikroElektronika | Free Online Book | PIC Microcontrollers | Chapter 9: Instruction Setregister. If d = f or d = 1, the result is stored in register f

Seite 76

mikroElektronika | Free Online Book | PIC Microcontrollers | Chapter 9: Instruction Set ... ...LAB_01 ... ; Program continues

Seite 77 - Fig. 4-14 T2CON Register

mikroElektronika | Free Online Book | PIC Microcontrollers | Chapter 9: Instruction SetBefore instruction execution: REG = 0xFF Z =

Seite 78

mikroElektronika | Free Online Book | PIC Microcontrollers | Chapter 9: Instruction SetOperand: 0 ≤ k ≤ 255Status affected: -Number of cycles: 1EXAMPL

Seite 79 - Chapter 5: CCP Modules

mikroElektronika | Free Online Book | PIC Microcontrollers | Introduction: World of Microcontrollers● Instruction Decoder is a part of the electro

Seite 80 - Fig. 5-2 CCP1 in Capture mode

mikroElektronika | Free Online Book | PIC Microcontrollers | Chapter 9: Instruction SetEXAMPLE 2:...[label] IORWF REG,fBefore instruction execution:

Seite 81 - Fig. 5-3 CCP1 in Compare mode

mikroElektronika | Free Online Book | PIC Microcontrollers | Chapter 9: Instruction SetEXAMPLE 2:...[label] MOVF INDF,fBefore instruction execution:

Seite 82 - Fig. 5-4 CCP1 in PWM mode

mikroElektronika | Free Online Book | PIC Microcontrollers | Chapter 9: Instruction Set[label] MOVLW ConstBefore instruction execution: W=0x10After in

Seite 83 - Fig.5-7 PWM Mode

mikroElektronika | Free Online Book | PIC Microcontrollers | Chapter 9: Instruction Setthe value 0x00After instruction: W=0x17 FSR

Seite 84

mikroElektronika | Free Online Book | PIC Microcontrollers | Chapter 9: Instruction SetEXAMPLE :...[label] RETFIEBefore instruction execution: PC = x

Seite 85 - Table 5-4 CCP1CON Register

mikroElektronika | Free Online Book | PIC Microcontrollers | Chapter 9: Instruction SetRETURN - Return from SubroutineSyntax: [label] RETURNDescriptio

Seite 86 - Fig. 5-9 CCP2 Module

mikroElektronika | Free Online Book | PIC Microcontrollers | Chapter 9: Instruction Set Fig. 9-1 f RegisterEXAMPLE 1:...[label] RLF REG,wBefore instr

Seite 87 - Table 5-6 CCP2CON Register

mikroElektronika | Free Online Book | PIC Microcontrollers | Chapter 9: Instruction SetOperation: (f(n)) -> d(n-1), f(0) -> C, C -> d(7);Oper

Seite 88

mikroElektronika | Free Online Book | PIC Microcontrollers | Chapter 9: Instruction SetSLEEP - Enter Sleep modeSyntax: [label] SLEEPDescription: The p

Seite 89 - Fig. 5-13 Half Bridge Mode

mikroElektronika | Free Online Book | PIC Microcontrollers | Chapter 9: Instruction SetEXAMPLE :...[label] SUBLW 0x03Before instruction execution: W

Seite 90 - Fig. 5-15 Full-Bridge Mode

mikroElektronika | Free Online Book | PIC Microcontrollers | Introduction: World of Microcontrollers Fig. 0-23 Serial communicationshould be strictly

Seite 91 - Fig. 5-17 Reverse Mode

mikroElektronika | Free Online Book | PIC Microcontrollers | Chapter 9: Instruction SetAfter instruction: REG = 0, W = 2, C = 1, Z = 1 result is 0Bef

Seite 92 - Fig. 5-19 ECCPAS Register

mikroElektronika | Free Online Book | PIC Microcontrollers | Chapter 9: Instruction SetXORLW - Exclusive OR literal with WSyntax: [label] XORLW kDescr

Seite 93

mikroElektronika | Free Online Book | PIC Microcontrollers | Chapter 9: Instruction SetSyntax: [label] XORWF f, dDescription: The content of register

Seite 94

mikroElektronika | Free Online Book | PIC Microcontrollers | Chapter 9: Instruction Setcombining already existing instructions.Instruction Description

Seite 95 - EUSART Asynchronous Mode

mikroElektronika | Free Online Book | PIC Microcontrollers | Chapter 9: Instruction Sethttp://www.mikroe.com/en/books/picmcubook/ch9/ (35 of 35)5/3/20

Seite 96

mikroElektronika | Free Online Book | PIC Microcontrollers | Appendix A: Programming a Microcontroller● TOC● Introduction● Ch. 1● Ch.

Seite 97

mikroElektronika | Free Online Book | PIC Microcontrollers | Appendix A: Programming a MicrocontrollerA program written in assembly language consists

Seite 98 - Fig. 6-5 Receiving 9-bit Data

mikroElektronika | Free Online Book | PIC Microcontrollers | Appendix A: Programming a MicrocontrollerInstructions are defined for each microcontrolle

Seite 99 - Fig.6-8 TXSTA Register

mikroElektronika | Free Online Book | PIC Microcontrollers | Appendix A: Programming a MicrocontrollerEQU directive This directive is used to replace

Seite 100 - Fig.6-9 RCSTA Register

mikroElektronika | Free Online Book | PIC Microcontrollers | Appendix A: Programming a Microcontroller RIGHT ; address 0x24ENDC .

Seite 101

mikroElektronika | Free Online Book | PIC Microcontrollers | Introduction: World of MicrocontrollersI2C (Inter Integrated Circuit) is a system used wh

Seite 102

mikroElektronika | Free Online Book | PIC Microcontrollers | Appendix A: Programming a MicrocontrollerEXAMPLE OF HOW TO WRITE A PROGRAMThe following e

Seite 103

mikroElektronika | Free Online Book | PIC Microcontrollers | Appendix A: Programming a Microcontrollerenough to use command "goto Main" in o

Seite 104 - BAUDCTL Register

mikroElektronika | Free Online Book | PIC Microcontrollers | Appendix A: Programming a Microcontrollerbank1 macro ; Macro bank1

Seite 105 - Fig. 6-11 BAUDCTL Register

mikroElektronika | Free Online Book | PIC Microcontrollers | Appendix A: Programming a MicrocontrollerIn the event that a macro has labels, they must

Seite 106

mikroElektronika | Free Online Book | PIC Microcontrollers | Appendix A: Programming a MicrocontrollerMain ; Main program call

Seite 107 - SPI Mode

mikroElektronika | Free Online Book | PIC Microcontrollers | Appendix A: Programming a Microcontroller Click on this icon to start up the process... S

Seite 108 - Fig. 6-14 SPI Mode

mikroElektronika | Free Online Book | PIC Microcontrollers | Appendix A: Programming a MicrocontrollerDo you want to install the entire software? Yes.

Seite 109 - I²C mode

mikroElektronika | Free Online Book | PIC Microcontrollers | Appendix A: Programming a MicrocontrollerFinally! This is what you have been waiting for.

Seite 110

mikroElektronika | Free Online Book | PIC Microcontrollers | Appendix A: Programming a Microcontrollerthere is a rule to have shortcuts for the most c

Seite 111 - Fig. 6-21 Data Transfer

mikroElektronika | Free Online Book | PIC Microcontrollers | Appendix A: Programming a MicrocontrollerKeep on project-making by clicking NEXT. Then se

Seite 112 - Fig. 6-23 SSPSTAT Register

mikroElektronika | Free Online Book | PIC Microcontrollers | Introduction: World of Microcontrollersof all today’s microprocessors. Intel kept on deve

Seite 113

mikroElektronika | Free Online Book | PIC Microcontrollers | Introduction: World of MicrocontrollersEven pulses coming from the oscillator enable harm

Seite 114 - Fig. 6-24 SSPCON Register

mikroElektronika | Free Online Book | PIC Microcontrollers | Appendix A: Programming a Microcontroller Click FINISH to complete the project. The windo

Seite 115 - Fig. 6-25 SSPCON2 Register

mikroElektronika | Free Online Book | PIC Microcontrollers | Appendix A: Programming a Microcontroller The next step is to write a program. Open a new

Seite 116 - Fig. 6-27 I²C in Master Mode

mikroElektronika | Free Online Book | PIC Microcontrollers | Appendix A: Programming a MicrocontrollerClick "Blink" to include the document

Seite 117 - I²C Master Mode

mikroElektronika | Free Online Book | PIC Microcontrollers | Appendix A: Programming a Microcontroller SIMULATORAsimulator is a part of MPLAB environm

Seite 118

mikroElektronika | Free Online Book | PIC Microcontrollers | Appendix A: Programming a MicrocontrollerSimulator is activated by clicking on DEBUGGER &

Seite 119 - Useful notes

mikroElektronika | Free Online Book | PIC Microcontrollers | Appendix A: Programming a Microcontroller>FILE REGISTERS option.If the program contain

Seite 120

mikroElektronika | Free Online Book | PIC Microcontrollers | Appendix B: Examples● TOC● Introduction● Ch. 1● Ch. 2● Ch. 3● Ch.

Seite 121 - Chapter 7: Analog Modules

mikroElektronika | Free Online Book | PIC Microcontrollers | Appendix B: Examples Clearly, it is about simple circuits, but it does not have to always

Seite 122

mikroElektronika | Free Online Book | PIC Microcontrollers | Appendix B: ExamplesWhy are these modes so important? Owing to the fact that it is almost

Seite 123 - How to Use A/D Converter?

mikroElektronika | Free Online Book | PIC Microcontrollers | Appendix B: ExamplesThese oscillators are used when it is not necessary to have extremely

Seite 124

mikroElektronika | Free Online Book | PIC Microcontrollers | Introduction: World of Microcontrollers Fig. 0-27 Timers/Counterssame width, which makes

Seite 125

mikroElektronika | Free Online Book | PIC Microcontrollers | Appendix B: Examples It is about contact bounce- a common problem with mechanical switche

Seite 126

mikroElektronika | Free Online Book | PIC Microcontrollers | Appendix B: Examplesthe change, it means that a switch/push-button has changed its positi

Seite 127 - Fig. 7-6 Analog Comparator

mikroElektronika | Free Online Book | PIC Microcontrollers | Appendix B: Examples Quick burning Like any other diode, LEDs have two ends an anode and

Seite 128 - Fig. 7-7 VREF

mikroElektronika | Free Online Book | PIC Microcontrollers | Appendix B: Examples Here are a few important things that one should pay attention to whe

Seite 129 - Fig. 7-8 CM1CON0 Regsiter

mikroElektronika | Free Online Book | PIC Microcontrollers | Appendix B: Examples Here is an explanation on the figure above. First a byte representin

Seite 130

mikroElektronika | Free Online Book | PIC Microcontrollers | Appendix B: Examples Digits to display Display Segmentsdp a b c d e f g0 0 1 1 1 1 1 1 01

Seite 131

mikroElektronika | Free Online Book | PIC Microcontrollers | Appendix B: Examples The R/C network represented by the broken line in the figure above d

Seite 132

mikroElektronika | Free Online Book | PIC Microcontrollers | Appendix B: ExamplesControl of operating4 RS01 D0 – D7 are interpreted as commandsD0 – D7

Seite 133 - Fig. 7-13 VRCON Register

mikroElektronika | Free Online Book | PIC Microcontrollers | Appendix B: Examples If there are no characters displayed or if all of them are dimmed wh

Seite 134

mikroElektronika | Free Online Book | PIC Microcontrollers | Appendix B: ExamplesThis is a sort of RAM memory so data can be written to and read from

Seite 135

mikroElektronika | Free Online Book | PIC Microcontrollers | Introduction: World of Microcontrollerssubtraction T2-T1). If the registers use pulses co

Seite 136

mikroElektronika | Free Online Book | PIC Microcontrollers | Appendix B: ExamplesWhat is ASCII? From their inception till today, computers can recogni

Seite 137 - External Clock Modes

mikroElektronika | Free Online Book | PIC Microcontrollers | Appendix B: Examplessignal which would, upon command execution, indicate that the display

Seite 138 - Fig. 8-4 External Oscillator

mikroElektronika | Free Online Book | PIC Microcontrollers | Appendix B: Examples4. Character entryID = 1 Displayed addresses are automatically incre

Seite 139

mikroElektronika | Free Online Book | PIC Microcontrollers | Appendix B: Examples It is not a mistake! In this algorithm, the same value is transferre

Seite 140 - Internal Clock Modes

mikroElektronika | Free Online Book | PIC Microcontrollers | Appendix B: Examples EXAMPLE 1Writing header and configuring I/O pins The only purpose of

Seite 141 - Internal Oscillator Settings

mikroElektronika | Free Online Book | PIC Microcontrollers | Appendix B: Examples The purpose of the header and initial directives is briefly describe

Seite 142 - Two-Speed Clock Start-up Mode

mikroElektronika | Free Online Book | PIC Microcontrollers | Appendix B: Examplesbsf INTCON, GIEIt means that the GIE bit of the INTCON register shoul

Seite 143 - Fail-Safe Clock Monitor

mikroElektronika | Free Online Book | PIC Microcontrollers | Appendix B: ExamplesEXAMPLE 2Using program loop and internal oscillator LFINTOSC This is

Seite 144

mikroElektronika | Free Online Book | PIC Microcontrollers | Appendix B: Examples;********************************************************************

Seite 145

mikroElektronika | Free Online Book | PIC Microcontrollers | Appendix B: Examples movlw B'11110000' ; Binary number 11110000 i

Seite 146 - Fig.8-18 EECON1 Register

mikroElektronika | Free Online Book | PIC Microcontrollers | Introduction: World of Microcontrollers Fig. 0-29 Using prescaler in timer operatingUsing

Seite 147

mikroElektronika | Free Online Book | PIC Microcontrollers | Appendix B: Examples Pay attention to a few details:● Even though it is unnecessary i

Seite 148

mikroElektronika | Free Online Book | PIC Microcontrollers | Appendix B: Examples movwf pclath_temp banksel PORTB

Seite 149 - Fig. 8-23 Master Clear Pin

mikroElektronika | Free Online Book | PIC Microcontrollers | Appendix B: Examples At the beginning of the program, immediately upon defining variables

Seite 150 - Chapter 9: Instruction Set

mikroElektronika | Free Online Book | PIC Microcontrollers | Appendix B: Examples movwf TRISA ; Pin RA1 is input ba

Seite 151

mikroElektronika | Free Online Book | PIC Microcontrollers | Appendix B: Examples Example 6: ;********************************************************

Seite 152 - Bit-oriented Instructions

mikroElektronika | Free Online Book | PIC Microcontrollers | Appendix B: Examples ; W register and number TEST (0000

Seite 153

mikroElektronika | Free Online Book | PIC Microcontrollers | Appendix B: Examples HIcnt LOcnt LOOPcnt cnt endc

Seite 154 - ADDWF - Add W and f

mikroElektronika | Free Online Book | PIC Microcontrollers | Appendix B: Examples btfsc STATUS, Z goto End call

Seite 155 - ANDLW - AND literal with W

mikroElektronika | Free Online Book | PIC Microcontrollers | Appendix B: Examples16-bit timer TMR1 is used in this example. By occupying its registers

Seite 156 - ANDWF - AND W with f

mikroElektronika | Free Online Book | PIC Microcontrollers | Appendix B: Examples movf status_temp,w ; STATUS is given its original con

Seite 157 - BCF - Bit Clear f

mikroElektronika | Free Online Book | PIC Microcontrollers | Introduction: World of Microcontrollers Fig. 0-30 Using the interrupt in timer operationT

Seite 158 - BSF - Bit set f

mikroElektronika | Free Online Book | PIC Microcontrollers | Appendix B: Examples movwf w_temp ; Save register W mov

Seite 159

mikroElektronika | Free Online Book | PIC Microcontrollers | Appendix B: Examples Example 10: ;********************** Header *************************

Seite 160

mikroElektronika | Free Online Book | PIC Microcontrollers | Appendix B: Examples movf PCLATH ; Save register PCLATH movwf

Seite 161 - CLRF - Clear f

mikroElektronika | Free Online Book | PIC Microcontrollers | Appendix B: Examplespossible, only 8 lower bits of the result of conversion are shown. GN

Seite 162 - CLRW - Clear W

mikroElektronika | Free Online Book | PIC Microcontrollers | Appendix B: Examples ; loop banksel ADRESL

Seite 163 - COMF - Complement f

mikroElektronika | Free Online Book | PIC Microcontrollers | Appendix B: Examples Example 12: ;********************** Header *************************

Seite 164 - DECF - Decrement f

mikroElektronika | Free Online Book | PIC Microcontrollers | Appendix B: Examples movwf EEDAT ; Writes data to temporary registe

Seite 165

mikroElektronika | Free Online Book | PIC Microcontrollers | Appendix B: ExamplesExample 13: ;************************* Header ***********************

Seite 166 - GOTO - Unconditional Branch

mikroElektronika | Free Online Book | PIC Microcontrollers | Appendix B: Examples digbyte Dval movf Dig0, w call B

Seite 167 - INCF - Increment f

mikroElektronika | Free Online Book | PIC Microcontrollers | Appendix B: Examples ; tant to have it all on one pageB

Seite 168

mikroElektronika | Free Online Book | PIC Microcontrollers | Introduction: World of Microcontrollers Fig. 0-31 Watchdog TimerA/D Converter External si

Seite 169 - IORWF - Inclusive OR W with f

mikroElektronika | Free Online Book | PIC Microcontrollers | Appendix B: Examples Example 14: ;*********************** Header ************************

Seite 170 - MOVF - Move f

mikroElektronika | Free Online Book | PIC Microcontrollers | Appendix B: Examples clrf ANSELH banksel TRISD movlw

Seite 171 - MOVLW - Move literal to W

mikroElektronika | Free Online Book | PIC Microcontrollers | Appendix B: ExamplesB_Wait movf Beep_TEMP1, w movwf Beep_TEMP3B_Waita d

Seite 172 - MOVWF - Move W to f

mikroElektronika | Free Online Book | PIC Microcontrollers | Appendix B: Examples LCDportBuf ; LCD Port Buffer Dig

Seite 173 - NOP - No Operation

mikroElektronika | Free Online Book | PIC Microcontrollers | Appendix B: Examples bcf STATUS, RP1 ; Function set (4-bit mode chang

Seite 174

mikroElektronika | Free Online Book | PIC Microcontrollers | Appendix B: Examples movlw LCDcommand call LCDcomd ENDM

Seite 175

mikroElektronika | Free Online Book | PIC Microcontrollers | Appendix B: Examples i=i+1 ENDWExit ENDM ;***********************

Seite 176 - Fig. 9-1 f Register

mikroElektronika | Free Online Book | PIC Microcontrollers | Appendix B: Examples Example 16: ;*********************** Header ************************

Seite 177 - Fig. 9-2 f Register

mikroElektronika | Free Online Book | PIC Microcontrollers | Appendix B: Examples; This part of the program is executed in interrupt routine ban

Seite 178 - SLEEP - Enter Sleep mode

mikroElektronika | Free Online Book | PIC Microcontrollers | Appendix B: Examples movwf TRISA movlw b'00000000'

Seite 179 - SUBWF - Subtract W from f

mikroElektronika | Free Online Book | PIC Microcontrollers | Introduction: World of Microcontrollers Fig. 0-32 A/D ConverterInternal Architecture All

Seite 180 - SWAPF - Swap Nibbles in f

mikroElektronika | Free Online Book | PIC Microcontrollers | Appendix C: Development Systems● TOC● Introduction● Ch. 1● Ch. 2● Ch.

Seite 181 - XORWF - Exclusive OR W with f

mikroElektronika | Free Online Book | PIC Microcontrollers | Appendix C: Development Systems goto LoopIncrement incf cnt,f movf cnt,

Seite 182

mikroElektronika | Free Online Book | PIC Microcontrollers | Appendix C: Development SystemsIn case other software for program writing in assembly lan

Seite 183

mikroElektronika | Free Online Book | PIC Microcontrollers | Appendix C: Development Systems OK. You have written a program and tested it with the sim

Seite 184

mikroElektronika | Free Online Book | PIC Microcontrollers | Appendix C: Development Systems The program is written and successfully compiled. All tha

Seite 185 - ELEMENTS OF ASSEMBLY LANGUAGE

mikroElektronika | Free Online Book | PIC Microcontrollers | Appendix C: Development Systems That's it! The microcontroller is programmed and eve

Seite 186

mikroElektronika | Free Online Book | PIC Microcontrollers | Appendix C: Development Systems Development system EasyPIC5Previous Chapter | Table of Co

Seite 187

mikroElektronika | Free Online Book | PIC Microcontrollers | Introduction: World of MicrocontrollersMicrocontrollers using this architecture have only

Seite 188

mikroElektronika | Free Online Book | PIC Microcontrollers | Introduction: World of Microcontrollerscontains information upon WHICH data it should be

Seite 189

mikroElektronika | Free Online Book | PIC Microcontrollers | Introduction: World of MicrocontrollersRemember learning to ride a bicycle: after several

Seite 190

mikroElektronika | Free Online Book | PIC Microcontrollers | Introduction: World of Microcontrollers Fig. 0-1 Microcontroller versus MicroprocessorOn

Seite 191 - MACROS AND SUBROUTINES

mikroElektronika | Free Online Book | PIC Microcontrollers | Introduction: World of MicrocontrollersAs seen in the table on the previous page, excepti

Seite 192

mikroElektronika | Free Online Book | PIC Microcontrollers | Chapter 1: PIC16F887 Microcontroller - Device Overview● TOC● Introduction● Ch

Seite 193

mikroElektronika | Free Online Book | PIC Microcontrollers | Chapter 1: PIC16F887 Microcontroller - Device Overview❍ 10-bit resolution ● 3 ind

Seite 194

mikroElektronika | Free Online Book | PIC Microcontrollers | Chapter 1: PIC16F887 Microcontroller - Device Overview Fig. 1-2 PIC16F887 QFN 44 Microcon

Seite 195

mikroElektronika | Free Online Book | PIC Microcontrollers | Chapter 1: PIC16F887 Microcontroller - Device Overview Fig. 1-3 PIC16F887 Block DiagramPi

Seite 196

mikroElektronika | Free Online Book | PIC Microcontrollers | Chapter 1: PIC16F887 Microcontroller - Device Overview Table 1-1 Pin Assignmenthttp://www

Seite 197

mikroElektronika | Free Online Book | PIC Microcontrollers | Chapter 1: PIC16F887 Microcontroller - Device Overview Table 1-1 cont. Pin Assignmenthttp

Seite 198

mikroElektronika | Free Online Book | PIC Microcontrollers | Chapter 1: PIC16F887 Microcontroller - Device Overview Table 1-1 cont. Pin AssignmentCent

Seite 199

mikroElektronika | Free Online Book | PIC Microcontrollers | Chapter 1: PIC16F887 Microcontroller - Device Overviewthe PC and a simple electronic devi

Seite 200 - WRITING A NEW PROGRAM

mikroElektronika | Free Online Book | PIC Microcontrollers | Chapter 1: PIC16F887 Microcontroller - Device Overview Fig. 1-6 SFR and General Purpose R

Seite 201

mikroElektronika | Free Online Book | PIC Microcontrollers | Introduction: World of MicrocontrollersDid you know that all people can be classified int

Seite 202

mikroElektronika | Free Online Book | PIC Microcontrollers | Chapter 1: PIC16F887 Microcontroller - Device Overviewfunction of each port A pin can be

Seite 203

mikroElektronika | Free Online Book | PIC Microcontrollers | Chapter 1: PIC16F887 Microcontroller - Device Overview Table 1-3 SFR Bank 0http://www.mik

Seite 204

mikroElektronika | Free Online Book | PIC Microcontrollers | Chapter 1: PIC16F887 Microcontroller - Device Overview Table 1-4 SFR Bank 1http://www.mik

Seite 205

mikroElektronika | Free Online Book | PIC Microcontrollers | Chapter 1: PIC16F887 Microcontroller - Device Overview Table 1-5 SFR Bank 2 Table 1-6 SFR

Seite 206 - Appendix B: Examples

mikroElektronika | Free Online Book | PIC Microcontrollers | Chapter 1: PIC16F887 Microcontroller - Device Overviewpushed eight times, the ninth push

Seite 207

mikroElektronika | Free Online Book | PIC Microcontrollers | Chapter 2: Core SFRs● TOC● Introduction● Ch. 1● Ch. 2● Ch. 3● Ch.

Seite 208

mikroElektronika | Free Online Book | PIC Microcontrollers | Chapter 2: Core SFRsnot affect any Status bits (C, DC and Z). Refer to “Instruction Set S

Seite 209 - ADDITIONAL COMPONENTS

mikroElektronika | Free Online Book | PIC Microcontrollers | Chapter 2: Core SFRs● RBPU - Port B Pull up Enable bit. ❍ 1 - PortB pull-ups are

Seite 210

mikroElektronika | Free Online Book | PIC Microcontrollers | Chapter 2: Core SFRs1 1 0 1:128 1:641 1 1 1:256 1:128Table 2-2In order to achieve 1:1 pre

Seite 211

mikroElektronika | Free Online Book | PIC Microcontrollers | Chapter 2: Core SFRs Fig. 2-9 Interrupt SFRsINTCON Register The INTCON register contains

Seite 212

mikroElektronika | Free Online Book | PIC Microcontrollers | Introduction: World of Microcontrollersexample, but in reverse order. Bear in mind that a

Seite 213

mikroElektronika | Free Online Book | PIC Microcontrollers | Chapter 2: Core SFRsthat it does not affect interrupts triggered by the timer TMR0 or by

Seite 214

mikroElektronika | Free Online Book | PIC Microcontrollers | Chapter 2: Core SFRs● SSPIE - Master Synchronous Serial Port (MSSP) Interrupt Enable

Seite 215

mikroElektronika | Free Online Book | PIC Microcontrollers | Chapter 2: Core SFRs❍ 1 - Enables CCP2 interrupt. ❍ 0 - Disables CCP2 interrupt.

Seite 216

mikroElektronika | Free Online Book | PIC Microcontrollers | Chapter 2: Core SFRs Fig. 2-14 PIR2 register● OSFIF - Oscillator Fail Interrupt Flag

Seite 217

mikroElektronika | Free Online Book | PIC Microcontrollers | Chapter 2: Core SFRsFig. 2-15 PCON register● ULPWUE - Ultra Low-Power Wake-up Enable

Seite 218

mikroElektronika | Free Online Book | PIC Microcontrollers | Chapter 2: Core SFRsjump to the subroutine PP2 address. Fig. 2-17 PCLATH RegistersIn both

Seite 219

mikroElektronika | Free Online Book | PIC Microcontrollers | Chapter 2: Core SFRs Fig. 2-18 Direct and Indirect addressingPrevious Chapter | Table of

Seite 220

mikroElektronika | Free Online Book | PIC Microcontrollers | Chapter 3: I/O Ports● TOC● Introduction● Ch. 1● Ch. 2● Ch. 3● Ch.

Seite 221

mikroElektronika | Free Online Book | PIC Microcontrollers | Chapter 3: I/O Ports Fig. 3-1 I/O PortsPort A and TRISA Register Port A is an 8-bit wide,

Seite 222

mikroElektronika | Free Online Book | PIC Microcontrollers | Chapter 3: I/O Ports Fig. 3-2 Port A and TRISA RegisterSimilar to bits of the TRISA regis

Seite 223

mikroElektronika | Free Online Book | PIC Microcontrollers | Introduction: World of Microcontrollers Fig. 0-4 Binary and Hexadecimal numberThe largest

Seite 224 - EXAMPLE 1

mikroElektronika | Free Online Book | PIC Microcontrollers | Chapter 3: I/O PortsTheoretically, this is a perfect solution. The problem is that all pi

Seite 225

mikroElektronika | Free Online Book | PIC Microcontrollers | Chapter 3: I/O Ports Fig. 3-6 WPUB registerHaving a high level of resistance (several ten

Seite 226

mikroElektronika | Free Online Book | PIC Microcontrollers | Chapter 3: I/O Ports Fig. 3-8 IOCB registerBecause of these features, the port B pins are

Seite 227 - EXAMPLE 2

mikroElektronika | Free Online Book | PIC Microcontrollers | Chapter 3: I/O Portsvoltages is applied first, are beside the point, the programmers elec

Seite 228 - EXAMPLE 3

mikroElektronika | Free Online Book | PIC Microcontrollers | Chapter 3: I/O Ports Fig. 3-13 Port D and TRISD RegisterPort E and TRISE Register Port E

Seite 229 - Example 4

mikroElektronika | Free Online Book | PIC Microcontrollers | Chapter 3: I/O Ports Fig. 3-15 ANSEL and ANSELH RegistersThe rule is:To configure a pin a

Seite 230

mikroElektronika | Free Online Book | PIC Microcontrollers | Chapter 3: I/O Portsthere is to know about these Ports. However, they are probably the si

Seite 231 - Example 5

mikroElektronika | Free Online Book | PIC Microcontrollers | Chapter 4: Timers● TOC● Introduction● Ch. 1● Ch. 2● Ch. 3● Ch. 4●

Seite 232

mikroElektronika | Free Online Book | PIC Microcontrollers | Chapter 4: Timers Fig. 4-1 Timer TMR0OPTION_REG Register Fig. 4-2 OPTION_REG Register●

Seite 233 - EXAMPLE 6

mikroElektronika | Free Online Book | PIC Microcontrollers | Chapter 4: Timers❍ 1 - Internal cycle clock (Fosc/4). ● T0SE - TMR0 Source Edge S

Seite 234

mikroElektronika | Free Online Book | PIC Microcontrollers | Introduction: World of MicrocontrollersIn order to make conversion of a hexadecimal numbe

Seite 235 - EXAMPLE 7

mikroElektronika | Free Online Book | PIC Microcontrollers | Chapter 4: Timers Fig. 4-4 The function of the PSA bit 1As seen, the logic state of the P

Seite 236

mikroElektronika | Free Online Book | PIC Microcontrollers | Chapter 4: TimersBANKSEL TMR0CLRWDT ;CLEAR WDT AND PRESCALERBANKSEL OPTIO

Seite 237 - EXAMPLE 8

mikroElektronika | Free Online Book | PIC Microcontrollers | Chapter 4: Timers Fig. 4-6 Timer TMR1 OverviewTimer TMR1 Prescaler Timer TMR1 has a compl

Seite 238

mikroElektronika | Free Online Book | PIC Microcontrollers | Chapter 4: TimersFig. 4-7 Timer TMR1 OscillatorTimer TMR1 GateTimer 1 gate source is soft

Seite 239 - EXAMPLE 9

mikroElektronika | Free Online Book | PIC Microcontrollers | Chapter 4: Timers Fig. 4-9 Timer TMR1 OscillatorIn order to solve this problem, a complet

Seite 240 - EXAMPLE 10

mikroElektronika | Free Online Book | PIC Microcontrollers | Chapter 4: Timers Fig. 4-11 Counter ModeThis counter registers a logic one (1) on input p

Seite 241

mikroElektronika | Free Online Book | PIC Microcontrollers | Chapter 4: TimersT1CKPS1, T1CKPS0 - Timer1 Input Clock Prescale Select bits determine the

Seite 242 - EXAMPLE 11

mikroElektronika | Free Online Book | PIC Microcontrollers | Chapter 4: Timers Fig. 4-13 Timer TMR2The pulses from the quartz oscillator first pass th

Seite 243

mikroElektronika | Free Online Book | PIC Microcontrollers | Chapter 4: TimersTOUTPS3 TOUTPS2 TOUTPS1 TOUTPS0 Postscaler Rate0 0 0 0 1:10 0 0 1 1:20 0

Seite 244 - EXAMPLE 12

mikroElektronika | Free Online Book | PIC Microcontrollers | Chapter 5: CCP Modules● TOC● Introduction● Ch. 1● Ch. 2● Ch. 3● C

Seite 245

mikroElektronika | Free Online Book | PIC Microcontrollers | Introduction: World of MicrocontrollersComparative table below contains the values of num

Seite 246 - EXAMPLE 13

mikroElektronika | Free Online Book | PIC Microcontrollers | Chapter 5: CCP Modules Fig. 5-1 CCP1 ModuleIn Compare mode, if enabled by software, the t

Seite 247 - goto Lsdon

mikroElektronika | Free Online Book | PIC Microcontrollers | Chapter 5: CCP Modulesbit enabling CCP1IE interrupt and flag bit CCP1IF should be cleared

Seite 248

mikroElektronika | Free Online Book | PIC Microcontrollers | Chapter 5: CCP Modules Fig. 5-4 CCP1 in PWM modeAnother example, common in practice, is t

Seite 249 - EXAMPLE 14

mikroElektronika | Free Online Book | PIC Microcontrollers | Chapter 5: CCP Modules Fig. 5-6 PWM moduleThe figure above shows the block diagram of the

Seite 250

mikroElektronika | Free Online Book | PIC Microcontrollers | Chapter 5: CCP Modulesby equation F=1/T.PWM Duty Cycle The PWM duty cycle is specified by

Seite 251

mikroElektronika | Free Online Book | PIC Microcontrollers | Chapter 5: CCP Modules Fig. 5-8 CCP1CON RegisterP1M1, P1M0 - PWM Output Configuration bit

Seite 252 - EXAMPLE 15

mikroElektronika | Free Online Book | PIC Microcontrollers | Chapter 5: CCP ModulesEvery 16th rising edge on the CCP1 pin1 0 0 0Compare modeOutput and

Seite 253

mikroElektronika | Free Online Book | PIC Microcontrollers | Chapter 5: CCP ModulesSimilar to the pervious module, this circuit is under control of th

Seite 254

mikroElektronika | Free Online Book | PIC Microcontrollers | Chapter 5: CCP ModulesIn order to setup the CCP module for PWM operation, the following s

Seite 255

mikroElektronika | Free Online Book | PIC Microcontrollers | Chapter 5: CCP ModulesIn this mode, the PWM signal is output on the P1A pin, while at the

Seite 256 - EXAMPLE 16

mikroElektronika | Free Online Book | PIC Microcontrollers | Introduction: World of Microcontrollersis therefore called the least significant bit (LSB

Seite 257

mikroElektronika | Free Online Book | PIC Microcontrollers | Chapter 5: CCP Modules Fig. 5-14 Activate MOSFET driversFull-Bridge Mode In Full-Bridge m

Seite 258

mikroElektronika | Free Online Book | PIC Microcontrollers | Chapter 5: CCP ModulesFigure below shows the state of the P1A-P1D pins during one full PW

Seite 259

mikroElektronika | Free Online Book | PIC Microcontrollers | Chapter 5: CCP Modules Fig. 5-18 PWM1CON RegisterPSTRCON Register STRSYNC - Steering Sync

Seite 260

mikroElektronika | Free Online Book | PIC Microcontrollers | Chapter 5: CCP ModulesECCPASE - ECCP Auto-Shutdown Event Status bit indicates whether shu

Seite 261 - COMPILING PROGRAM

mikroElektronika | Free Online Book | PIC Microcontrollers | Chapter 6: Serial Communication Modules● TOC● Introduction● Ch. 1● Ch. 2●

Seite 262 - PROGRAMMING A MICROCONTROLLER

mikroElektronika | Free Online Book | PIC Microcontrollers | Chapter 6: Serial Communication ModulesEUSART Asynchronous ModeThe EUSART transmits and r

Seite 263

mikroElektronika | Free Online Book | PIC Microcontrollers | Chapter 6: Serial Communication ModulesSPEN = 1 - By setting this bit of the RCSTA regist

Seite 264

mikroElektronika | Free Online Book | PIC Microcontrollers | Chapter 6: Serial Communication ModulesWhen this first and necessary step is accomplished

Seite 265 - Development systems

mikroElektronika | Free Online Book | PIC Microcontrollers | Chapter 6: Serial Communication Modules Fig. 6-5 Receiving 9-bit DataAddress Detection Wh

Seite 266 - Development system EasyPIC5

mikroElektronika | Free Online Book | PIC Microcontrollers | Chapter 6: Serial Communication Modulesdevice should set the ADDEN bit in order to enable

Kommentare zu diesen Handbüchern

Keine Kommentare