Home
こちら - マイクロテクニカ
Contents
1. mTouch GND RB12 mTouch PIC mTouch CD RUM mTouch
2. 230 500 230 500 300 Vreg 300
3. AD I xt C X V V traka CLADRS 26 COLEMS BEMAZUCHBEISFMSCCMPAWET SA As Cp Cf CTMU 0 55uA X 1 5 5uA X 10 55uA X100 3 AD 10 Vdd 3 3V 0 003 eV
4. 20 sbit LCD_RS at LATB4_bit sbit LCD_D7_Direction at TRISA4_bit main sbt LCD Sbtt PIC SFR define6 1 LCD sbit THISG LCD mai n dSPICF 300 main
5. PIC 4 PIC HEX mikrnC dsPICF 300 HEX
6. void main unsigned inta b AD1PCFG 0x1C3F TRISB 0 TRISA 0x3 PORTB 0 LATA 0 LATB 0 a 5200 b 30000 while 1 if PORTA 0x1 PORTB a if PORTA 0x2 PORTB b 3 PIC PIC PIC ON OFF mikro
7. PORTB 1 2 PURTB 2 RB PIC24F16KA102 PFIC24F16KA10 CPU 16MIPS 32MHz 16k 1536 BMHz PLL 32MHz PIC
8. dsPICF 300 HBO LCD Touch Finger No Finger LCD 0 L DV 5 A D
9. 1 Project New Project mikrn0C Next 2 P24F16KA102 dsPICF 300 BMHz PIC24F15KA102 PLL 4 32MHz Device ClockK 32 32MHz 0 32 3 Project Name Lesson1
10. Installing HI TECH PICC Lite PICC Lite This program will install HI TECH PICC Lite version 9 60PL1 Press Next to continue Z On line help D Upgrade to STD or PRO x Crea C esa Windows Vista D Finish if Windows Web gt gt JETO Web
11. void Timerlint iv TVT ADDR T1TNTERRUPT ics ICS AUTO T1IF bit 0 LATB LATB 2 1 Project Edit Project Table Write Protect Boot Disabled Boot segment Protect Disabled General Segment Code Flash Write Protection General segment may be written General Segment Code Flash Code Protection IN protection Oscillator Select Primary oscillator XT HS EC Internal External Switch Enabled Primary Oscillator Hs oscillator mode selected lt l CLKO Configuration af CLKO output signal active on the OSCO pin Primary Oscillator Frequency Range Primary oscillator external cock input frequency between 100 kH SOSC Power Selection Secondary osdllator configured for high power operation Clock Switching and Monitor Selection Both Clock Switching and Fail safe Clock Monitor ar
12. M SAA mikroElektronika USB18F Device x86 Platform 3 4 5 CD RO M USB Programmer Software Driver WIN98_ME CD RUM Q USB Programmer Softeare Driver WINd8_ME
13. v D MmikroC PRO for dSPIC ikroElektronika dsPIC ANGSI dsPICF 300 HEX DKB C 10 1 CD ROM C SETUP EXE Next gt 2 License Agreement accept the terms in the License Agreement
14. main m ain Uart2_Init 9600 UART2 bps 9600Dps PIC24F16KA102 2 UARHT LCD AD UAHT2 delay_ms 100 UART 100 10 0 delay_ms Char 1 Init Init jnt
15. PIC HEX 5 HEX None
16. License Agreement accept the ter ms in the License Agreement Next gt 8 p mikroC PRO for dsPIC 2011 Setup Do you want to install mikroProg Suite drivers Y N PI PIC mikrn0C mikroProg Suite For PIC mikrnC mikr0C 1
17. RB1 RB2 RB3 HB12 H B14 AD1CHS 5 29 _ ICD D ICD 1
18. GND L Vcc VCc GND 1 UkO VCcc H B Low 0 10kO 0 Vcc H GND L 0 V IX0 UV H L dsPICF 300 VCc
19. F FA V ml Bm a F COM LPT _ t USB Serial Port COM5 KR LPT1 LB COM1 pf COM5 H1 R523 2C mikroC mlkrn0C USAHT Terminal Tools USART Terminal 9600bp Ss 1 Com Port dsPICF 300 RS232C Connect
20. 3 Tools Options Editor Options _ Editar J Took 4 Editor Settings Comment style j 5 H ingle line Advanced Editor Options ar Open options dialog 6 Editor Optionns Edito r Font Font 14 Font OK Options Apply OK
21. 0 1000 10 AD 102 4 Vcc 3 3V 1000 1001 10 3 3 1024 0 00322 AD 0 00322 B B AD LCD void init init void void main
22. 0 FT23 HL USB UAHT FT232HL FTDI USB UART FT232HL USB C UM FT232HL UART RS232C UAHRH T TX RX USB UARHT US B COM HS232C RS5232C
23. V mikroElektronika US USB dsPICF 300 1 dsPICF 300 UN USB POUWER SUP MM ae ee S2 oe A CO ON SUPPLY dl EXT AUSB USB USB AOAR en EEE IOAN S USB USB dsPICF 300 USB USB2 0 USB1 1 POWER LED 0S MWindows2000 XP 3
24. 05 dsSPICF 300 USB Link LED LED PC dsPICF 300 USB Link LED USB Devices by mikroElektronika WIndowsVista 7 WindowsVista 7 dSPICF 300 Window s UAC US5B Error x Can not communicate with hardware Please ensure that device is attached to USB bus and that t
25. 0 teXt Char 0 C typedef typedef LCD typedef typedef char typedef char typedef char moji char moji sbit LCD
26. IC HS232C RX TX GW1 dsPICF 300 USB RS232C TX RX AC SW1 RS232C D SUB9 SUPPLY SELECT VCC 3 3 U4 O a n a SW JAN USB Ea ii C28 p if J6 i C1 We C29 100nF 4 100nF V GNDI NO thi x SUPPLY SELECT 8 99 C1 T1 OUTI C30 C2 R1 IN 100nF 9 c2 R1 OUTI Sel i v T1 IN A 100nF MT2OUT T2INE R53 MR2IN R2O0UTE 100K VCC 3 3 MAX3232 VCC 3 3 USB USB
27. 2 Project Folder C mikr0C_pr0ject AN 2 Next New Project Wizard Step 1 Project Settings Project Name Lessonl Project folder mikroC_project Device Name FP24F16KA102 Device Clock 32 000000 MHz 4 Step2 Select files you want to add to project OD Next 5 Step3 Select initial state for library manager Include
28. 0 mikr0C TRISB 0 TRISA 0x3 TRIS 0 1 HB HRA RA0 RA1 Ox3 16 UX 0D 10 PORTB 0 PURTB 0 1 PORTB L a 5200 30000 int while
29. 0 RB145 DS1820 IC DS18520 C DS518520 DS18520 55C 12 PC C mlkr0C J DS18520 DQ RB9 RB 8 DQ 1KO DS518820 VCC 3 3 Bia Botoom view fann VCC MCU GND C
30. ICD deDug PIC LCD D ICD LCD dSPICF 300 LCD 1 Run gt start DeDugger Fd 2 void main ICD
31. 14 A D 1 5 PIC24F16 KA10 CTMU AD 1 sbit LCD RS at LATB4 bit sbit LCD EN at LATB5 bit sbit LCD D4 at LATB6 bit sbit LCD D5 at LATAO bit sbit LCD D6 at LATAl bit sbit LCD D7 at LATA4 bit sbit LCD RS D
32. Value 10 J Peripherals Freeze Value i 5 Name for for i 0 3233 i N Led Chr cp text i J for 0 J Peripherals Freeze Name yue i Co Ox0004 0 F8B LCD m micro technica m for 0 mikr0C C ICD 31 ICD
33. 91 Primary Oscillator XTPLL HSPLL ga ECPLL FRCPLL I 8 MHz 4 MHz Oscillator i oe LJ 0SC0 0SC1 BMHzZ Primary 0scillator 5MHz HS5 4MHz XT XT HS EC 4 4X PLL 4 PLL XTPLLH SPLL Oscillator 5elect Primary oscillator with PLL mo dule H5 PLL EC PLL 2 Q A o a CLKDIV lt 10 8 gt
34. USB PIC24 dsPIC33 USB 0 65K HEX ICD C 16 dsPICDF 300 O0SPICF 300 PIC24F16KA102 SP 16
35. AD_res ADC1_Head 4 Adc1_RHead AD 10 0 1024 int A AD PIC AD MCLRIVPP RAS ANOMREF CN2 RAQ AN T VREF CN3 RAT PGDI AN2 C1IND C2INB U2TAICN4 RBO POC W ANS CIINC CZINAIUARA CNS RB1 AN4 CTINB C2IND UTIRX CNE RB ANS CTINAIC2ING CN JRB3 VSS AN4 RB2 intTostr AD_res txt Int intTostr AD int 10 0 1024
36. HEX HEX HEX 1 Project Edit Project 2 1 PIC24
37. NOT LATB NT TIIE_bit 1 IEC0U 3 MR1 1 TMR1 TICON OUx8030 T1CON TMR1 0FF 256 IPCO Ox 7000 IPC CO 14 11 TMR1 0OO 111 7 TMR1 1 11 PR1 3126 PH1 TMH1 lt
38. i le LLL LL sbit LCD D7 Directi 15 oid main x char text 14 m dnt i 30 Xvoid main Hun DisAss embly mode ICD 1 LCD for for i 0 gt i lt 13 i for Hun Run to Cusor F4 for LCD 1
39. Select Variable form liSt Y OXXXXX i main_i_LO XXXX B B E so oF ot a E Ao a Add Remove Properties lee Adc All ka Remo Select variable tram list L LCTO Dg Oox02768 LCD D Direction OxO02CA LCD DY ar LCE D7 Direction IXIC LCD EN LCD EN Direction i 2x02 CA LCD RS 1 an Ma ip fOx0868 LCD I Direction main text LO CE Data Port Lo 12 Add Select variable from list F Name Value Address Value F8 For 1 Peripherals Freez Name Search for variable by assembly name maini LO 7 Peripherals Freeze Advanced Breakpoints Address xz Value
40. ICUD2 ICD3 ICD2 ICD3 ICD2 ICD3 dsPICF 300 dsPICF 300 AC ICD2 ICD3 USB 1 dsPICF 300 ICD2 ICD3 MPLAB Debugger Programmer MPLAB ICD2 MPLAB ICD3 2 Debugger Programmer Settings 3 Power 4 Power target circuit from MPLAB ICD2 ICD3 UK 5 dsPICF 300 J1 J
41. LED GND SW MCLR 4 1 2 MCLR GND J5 SW4 LED H LED 220 LED H LED 22
42. VCC 3 3 EEPRUM HAM 12 2 EEPROM 24AA01 1kbit SPI SPI HAM 23K640 64kbit EEPRUM RAM EEPHRUM HAM I2C SPI EEPRUM 24AA01 2C SDA SCL SW2 1 4 S5DA HB RB SCL RB8 RB 6
43. 2 Default Oscillator Select Primary oscillator with PLL module HS PLL EC PLL Primary Oscillator HS oscillator mode selected Oscillator Select Primary oscillator with PLL module HS PLL EC PLL Internal External Switch Enabled Primary Oscillator 0K 0scillator 8MHz HS 8BMHzZ PIC PLL 4 8MHz Xx4 32MHz
44. A B C 1 break switch 23 UART2_Write_Text txt Uart2_Write_Text0 UART TMR1 EMRI PIC24 1 5 5 16 TMRH1 TMR2 1 Ux0 000 lt 0xFFFF U 65535 5 TMR1
45. 0 NPN J16 HB8 HB9 20Hz 20KHzZ BUZZER mTouch PIC mTouch mTouch
46. mikro Prog Sui te Config 5 dsPICF 300 dsSPICF 300 HAU RB LED RA0 8 5200 2 LED 5200 2 0001010001010000 RB15 HB0 RB15 LILIUM Ld EE gmp SHENH RB7 E x HA1 D 30000 HB LED 30000 0111010100110000
47. dsPIC33F PIC24 C 3 HEX HEX Load RHeload HEX HEX Watchdog Timer Power Up Timer Data EE Protect Brown Out Detect Int Ext Switchover Fail safe Cik Monitor Low Voltage Program In Circuit Debugger Brown out Reset Sel to 4 0V ID Locations 3FFF Program Memory Size K Master Clear PI
48. dSPICF 300 1 dsPICF 300 RB LED RA Vcc 3 3V High SW4 PORTB 2 ON OFF PORTA Pull Down J6 VCC3 PIC PUHTB LED H LED POHTA H 3 3V
49. 32 768KHz 32 768KHz TMRH1 15 1 TMR1 PH1 TM R1 PR1 TMR1 0 PI 24 PIC24
50. PIC24F16KA102 CTMU Charge Time Measurement Unit OSPICF 300 Cf
51. mikr0C C CcC cC main C C main 1 main 1 VOid main Void v0id C
52. GERD SERS CD DRA B 5 0K n mikroElektronika USB18F Device x86 Platform GET 2 3 WindowsVista 7 dsPICF 300 WindowsVista
53. IC dePIC 20 28 20 28 dsPICF 300 20 2 28 3
54. PORTB 200 Inms 25 void Timer1Int iv IVT_ADDR_T1INTERRUPT ics ICS_AUTO TMR1 mikrnC ijv ijv main T1IF_bit 0O TMR1 IFS50 3 0 krn0C _bit LATB LATB
55. AD 13 TMH1 CPU 0 lt 15 CURHCUN 3 5H 7 5 4 CURCON 3 TMR1 200 POHTB 200 dsPICF 300 8MHz CPU 8MHz TMRH1
56. SU FILER R CD Windows Update Web 0 7 Windows Update Old WStH E LRA 4 mikroElektronika LSB18F Device x86 Platform G SO 2 i O
57. 6 7 WindowsVista ii Windows gt D Web 1 sus Web v D Wi
58. AD UART RS232C dsPICF 300 UARHT RS232C USB COM 2 RS232C USB HS232C UGSB UART USB UAHT UARHT RS232C A Ox41 AD 4 AN4 RB2 10 B 0x42 LCD AD AN4 UART 9600bps 8B 1 sbit LCD RS at LATB4 bit sbit LCD EN at LATB5 bit sbit LCD D4 at LATB6 bit
59. PGD PGC ICD2 ICD3 6 dSPICF 300 MPLAB ICD2 ICD3 dePICF 300 USB dsPICF 300 USB MPLAB ICD2 IC TE dsPICF 300 U5SB AC dsPICF 300 IC DS18S20 USB AC USB FT232RL USB UAHT oe 4 E j fi I z 4 PRE 2 k z ee EXN AMAL EEPROUM HS232C RAM AD 16 2 LCD
60. WindO0wS 1 2 3 4 5 6 UK USB dsPICF 300 MPLAB MPLAB PIC PIC MPLAB
61. PIC LCD AD UART PIC _ dsPICF 300 mikroC CES I mikr0C C dsPIC F 300 dsPICF 300 mikroC C mikrOC C 1 mikroC Mikroelektronika mikroC PRO for dsPIC mikroC_dsPIC
62. PIC 1 2 4MHzZ 1 250n5 TMR1 1 2X x X PHR1 1 200 250nSX256X 3126 1 200 8MHz mikro dsPIC PIC24 IV T main void main ADPCFG OxFFFF TRISB 0 LATB 0 T1TE bit 0 TIIE bit 1 T1CON
63. AD CTMU mikroC PRO for dsPIC CD ROM dsSPICF 300 6 0 GND Ja GND CB1 CB4 CB3 CB5 CB6 n a m mii xj jor ao jo J J AD AD P1 P2 2 10KO 0OV 3 3V J14 J15 P1 J14 P 2 J15 AD
64. USB DC5V AC DC9V USB AC USB Ver 2 0 05 Windows98SE ME Windows2000 XP SP3 VISTA 7 32 64 dsPIC3dF PIC24 DIP dsPIC33FJU12GP201 DIP18 dsPIC33FJ12MC201 DIP20 dsPIC33FJ0665102 DIP28 dsPIC33FJ06GS202 DIP28 dsPIC33FJU16G65402 DIP28 dsPIC33FJ16G5502 DIP28 dsPIC33FU12GP202 DIP28 dsPICS3FU12MC202 DIP28 dsPICS3FU32GP202 DIP28 dsPIC33FU128GP802 DIP28 dsPIC33FJ128GP202 DIP28 dSPICS3FU64GP802 DIP28 dsPICS3FU64GP202 DIP28 dsPICS3FJ32GP302 DIP28 dsPIC33FU32MC202 DIP28 dsPIC3S3FU128MC802 DIP28 dsPIC33FJU128MC202 DIP28 dsPIC33FJ64MC802 DIP28 dsPIC33FJ64MC202 DIP28 dsPIC33FU32MC302 DIP28 PIC24FO4KA200 DIP14 PIC24FO4KA201 DIP20 PIC24FO8KA101 DIP20 PIC24F16KA101 DIP20 PIC24F16KA102 DIP20 PIC24FO8KA102 DIP20 PIC24FU16GA002 DIP28 PIC24FU382GA002 DIP28 PIC24FU48GA002 DIP28 PIC24FUB4GA002 DIP28 PIC24FJ32GA102 DIP28 PIC24FJ64GA102 DIP28 PIC24FJ32GBU0 DIP28 PIC24FJ64GBU02 DIP28 PIC24HJ12GP201 DIP18 PIC24HJ12GP202 DIP28 PIC24HJ382GP202 DIP28 PIC24HJ128GP802 DIP28 PIC24HJ128GP202 DIP28 PIC24HJ64GP802 DIP28 PIC24HJ64GP202 DIP28 PIC24HJ32GP302 DIP28
65. mikroProg Suite For PIC PIC Windows Pic a Mikroelektronika mikroProg Suite For PIC gt mikroProg Suite For PIC Configuration Bits Code Protect Oscillator RC RAS as CLKOUT RAT as RC foes eee See ae t None Enabled 0000h 1FFFh All Disabled FLASH Program Memory Enabled Write Enable Disabled Write protection Off O000h OOFFH Protected 0000h 07FFh Protected O000h OFFFh Protected BOD Enabled Enabled Enabled Enabled Calibration word Protect Cal Word 3FFF 1C Disabled 3FFF 3FFF 3FFF Clear 2 a Dere 6 Device Status Idle DATA Size 256 Bytes Address Oh Revision dMikroElektronika DEVELOPMENT TOOLS COMPILERS BOOKS ee eee ee ey 1 CONFIG 4
66. 1 mikrrC 1 1 C C h HEX 1 mcpDi N Ds a So ee hy 77 5774 c REM eae asm a HEX hex
67. g MikroElektronika Usart Terminal COM Port Settings TTPPFFPFFPFFFTFFHHTTTPHTTPFFFPPTFFFFFTPFFPHTFPPTFFPPFTHFFPPTFFPFFFTFFTT Eom Porm eR Baud rate 3500 bps Stop Bits One Stop Bit Parity Nome Check Parity Data bits Eight Buffer size igz4 Flow control None k Le a Hl Data Formats New Line Settings CR LF 0x00 Ox0A ASCII eee LF Ox0A DEC l E CR 0x00 i HE X dsPICF 300 me EG aa Connect HS232C AD Send A CX Send Send Xe Support ASCII Send as typing u Send Append New Line 65 Send ASCII Heceive P A
68. 1 CD HOM MPLAB SETUP EXE Next gt 2 License Agreement accept the terms of the licence agreement Next gt 3 setup type Complete Next gt 4 MPLAB Browse Next gt 5
69. 6 void main main C 1 1 main void main j main unsigned int a b int int 0 65535 AD1PCFG Ux1CSF AD1APCFG AD PIC AD 0 H L H L
70. A D CTMUCUN IDIGSEN 1 A D UV 5 IDISSEN 0 AD SAMP AD1CON1 CTMU EDG2STAT 0 EDG1STAT 1 A D CTMU ON 20 CTM U 0FF A D A D
71. ICD Build type ICD ICD HEX ICD HEX AGIA EILES SAIC Project Settings Build type Release
72. GND GND Cp GND Cp Cf Cp Cf Cp Cf PIC 100pF 670pF MU CTMU Cp Cf AD 2 CTMU Cp A D
73. W Application Maestro License accept the terms of the license agreement Next gt MIMPLAB C32 License accept the terms of the license agreement Next gt MStart copying files Next gt 6 MPLAB 8 00 PICC MPLAB UK Installing PICC Lite rx _ PICC Lite will now be installed by an external executable provided by HI TECH Software It is not controlled by this installer It will not be uninstalled if you uninstall MPLAB IDE ck 7 PICC Lite Cancel PICC Lite Hi Tech PIC MPLABG 00
74. LCD UART int IntTostr 7 7 if Uart2_Data_Ready Uart2_Data_Heady UART f uart_rd Uart2_Head Char uart_rd 1 switch uart_rd Switch case uart_rd UAHT Case
75. dsPICF 300 300mA USB AC USB GB dsPICF 300 POUWER SUPPLY USB A dSPICF 300 POWER SUPPLY EX AC DC9V 500mA 2 1 AC OSPICF 300 ON 0FF dsPICS3FU12GP201 DIP18 dsPIC33FU12MC201 DIP20 dsPICS3FJ06G65102 DIP28 dsP
76. Next gt 3 Install For All Users rec0mmended Next gt a mikrot PRO for dsP C mikroC PRO for dsPIC 7010 Install For All Users recommended lt Current User 4 Choose COmponents Examples Next 5 Instal 6 Completing the mikroC dsPIC Setup Wizard Finish Ep mikroC PRO for dsPIC 2011 Setup Do you want to install mikroProg Suite For PIC vi04 7
77. USB USB USB mikr0C C U5B PIC USB USB FT232HL USB UARHT UART USB dsSPICF 300 FT232RHL RX TX 2 RX TX SW2 5 lt 8 RX RB15 HB1 TX RB 14 RB0
78. dSPICF 300 FAX 03 3700 3548 Support microtechnica net webD weD http www microtechnica net PIC MPLAB http www microchip com ee microtechnica T158 0094 1 3 10 TEL 03 3700 3535 FAX 03 3700 3548 C 2011 Microtechnica All rights reser
79. X USB CD ROM OsSPICF 300 Wind0Ows98 ME WindOwsXP Vista 1 CD HRUM CD HUM 2 USB Programmer Software 3 Driver 4 05 05 WindowsVista 7 32 64 5 USB18PRG exe
80. char txt1 HELLO Char char 8 C ASCII char Lcd_Init LCD LCD Lcd_Cmd _LCD_CLEAR Lcd_Cmd LCD mikr0C Help Help Lcd_Out 1 1 txt1 Lcd_Uu t 4 LCD Lcd_ char text teXt Char
81. while 1 1 while if PORTA 0x1 PORTB a If mikrn0C 2 2 1 1 POHTA H HA0 0000 0000 0000 0001 P 0RTA
82. ISR 8 PI TMR1 3 IVT Ox0001A PIC IVT IVT 0x00014 0x00FE IVT 1 AIVT UOx0
83. UA RT S U9 is ITXD OSCOW se DTR OSCIE gt on CN13 ec ERTS LSA ID USBDM IVCCIO Foo gt USB B noy vec 3 3 IA fee ENC 4K7 RESET Bottom view a CTS GNDI CBUS4 3V30UTE CBUS2 USBDMI ECBUS3 USBDPI FT232RL C39 100nF COM CD RHOM FT232RHL COM COM a TF COM LPT USB USB PIC USB USB J8J1 1 USB USB
84. dsPICF 300 REV 1 00 USB2 0 DIP PIC24 dsPIC33 C 2013 DIP PIC24 dsPIC33 0SPICF 300 dsPICF 300 USB2 0 PIC 15 PIC24 DSP dSPIC33 16 PIC24 dsPIC33 DIP 14 18 20 28 PIC24 dsPIC33 28 20
85. dsPICF 300 RB6 MCU RB0 MCU PIC24F16KA102 PGC PGD J1 J2 MPLAB IC D2 ICD3 MPLAB ICD2 ICD3 Vdd dsPICF 300 Vdd MPLAB ICD2 ICD3 dSPICF 300 MPLAB ICD2 ICD3 dSPICF 300 AC dSPICF 300 USB dSPICF 300 USB MPLAB Target has own power supply ICED2 ICDG ICD2 CD3
86. 2 amp A Go g R e BE 3 me es A Ej af Build And Program Build current project and start CTRL Fi1 ibe E Build and Program 1 3 Finished successfully HEX mikroProg Suite for PIC v1 04 J by mikroElektronika ee File USB Info Minimize Clock switching mode Clock switching DISABLED fail safe monitor DISABLED Oscillator source on POR Alternate Oscillator MCU PIC30F4013 lt i Read Primary Alternate Oscillator mode HS HS Crystal Osc 10MHz 25MHz Watchdog Timer Disabled Watchdog prescaller A 1 512
87. GN D J6 2 LCD dsPICF 300 2 16 LCD C LCD Edit Project sbit LCD RS at LATB4 bit sbit LCD EN at LATB5 bit sbit LCD D4 at LATB6 bit sbit LCD D5 at LATAO bit sbit LCD D6 at LATAl bit sbit LCD D7 at LATA4 bit sbit LCD RS Direction at TRISB4 bit sbit LCD EN Direction at TRTSB5 bit sbit LCD D4 Direction at TRISB6 bit sbit LCD D5 Direction at TRISAO bit sbit LCD D6 Direction at TRISA1 bit sbit LCD D7 Direction at TRISA4 bit void main char txt1 HELLO char txt2 WORLD ADPCFG OxFFFF Led_Init Led Cmd LC
88. lank z Watchdog prescaller B 1 16 Master Clear Enable Enabled PBOR Enable Enabled Brown out Voltage 2 0V not a valid operating selection Power on Reset Timer Value 64 ms Gen Seg Prog Mem Code protect General Segment program memory NOT code protected Gen Seg Program Mem WR protect General Segment program memory is not write protected Reload HEX z Debugger Emulator enable Device reset into Operational mode V Load Save CODE i Clip on Emulation enable Device reset into Operational mode Load Save DATA ee ICD Communication channel Communicate on PGC EMUC and PGD EMUD CODE Program Memory Size 16 K Instr Device Status Idle Type PIC30F 4013 D UNIT ID EEPROM Size 1024 Bytes Address Oh Revision 1002h Eq DEVELOPMENT TOOLS COMPILERS BOOKS waking E aigla Operation None HEX File Loaded Z MIKROC PRO FOR DSPIC CODE EASYDSPIC6 TEST_4013 HEX Configuration Bits File USB Minimize MOU Family PEE peremees Bie ae ers Sete Info CONFIG MEU PIC30F4013 Read Write MCU INFO Verify Blank Erase Reset Xmikro Prog Suite
89. 0 J13 J1 J4 J3 0SC 0 05C1 0SC2 OSC1 Osc GA a s a OSC2 0874 RA3 0 05C1 RA3 RA2 0 05C1 RA2Z ce RB2 0 08C2 RB2 1 0 RB1 0 08C2 RB1 MPLAB ICD2 ICD3 dsPICF 300 MPLAB ICD2 MP LAB ICD3 5 MPLAB ICD ICD3
90. VCC 5V0 am Low Low lolsiSigigisisis gieiz High High MPO Me Ooo Oe oo J6 Voc High GND t CNS BFA a Low 1 GHSSSSDSSESSBOSOECOS OWS Wo tT NO YAG gt cfoTofecfafcfofeie o gt W a JB Low High 0 J6 Low lt F LCD 0 LCD LCD OVCC 3 3 VANE U
91. Write protection Off dSPICF 300 USB LINK LED Write Read PIC Code File gt Save HEX Verify HEX PIC Blank Erase
92. mikr0C C ICD dsPICF 300 ICD I CD ICD delay_ ms delay ICD Project Settin gs Build type CD debug ICD LCD microtechnica ICD 1 sbit LCD RS at LATB4 bit sbit LCD EN at LATB5 bit sbit LCD D4 at LATB6 bit sbit LCD D5 at LATAO bit sbit LCD D6 at LATAl bit sbit LCD D7 at LATA4 bit sbit LCD RS Di
93. 1K I2C AU AZ2 3 AO Vcc 001 1 RAM 2S3K640 S5W1 5W3 SCK MIS0O M0SI RHAM CS5 HOLD 1K SW1 h N Ww A 1 Oo y CO 23K640 8 99G ESZl CD RHUM
94. sbit LCD D5 at LATAO bit sbit LCD D6 at LATA bit sbit LCD D7 at LATA4 bit sbit LCD RS Direction at TRISB4 bit sbit LCD EN Direction at TRISB5 bit sbit LCD D4 Direction at TRISB6 bit sbit LCD D5 Direction at TRISAO bit sbit LCD D6 Direction at TRISA1 bit sbit LCD D7 Direction at TRISA4 bit void init ADPCFG OxFFFF Led Init Lcd Cmd LCD CLEAR Lcd Cmd LCD CURSOR_OFF UART2 Tnit 9600 Delay ms 100 void main char uart rd txt 7 unsigned int AD res init while 1 AD res ADC1 Read 4 intTostr AD res txt if UART2 Data Ready uart rd UART2 Read switch uart rd case 0x41 UART2 Write Text txt break case 0x42 Led Out gt txt break dSPICF 300 dsPICF 30 0 RS232C USB UARHT AD AN4 LCD O
95. 1 LCD F8 Hun gt Step Uver F8 F8 LCD m F8 For 1 LCD 5 F8 ICD F8B F8 ICD Watch Value 1
96. USB2 0 USB mikr0C ICD I ifm i nm CN7 16 2 Q 16 OLCD D D4 4 4 P4 220 LCD D4 D 7 RB6 RAO RA1 RA4 J5 Enable HB5 RS RB4 Low High J6 R43 Low High
97. 0 Vcc GND 0FF VCC 3 3 Q 293 0 J5 High Low 23 J6 Vcc High GND Low 0 0 10KO Vcc 3 3V 10KO GN D
98. 0114 lt Ux001FE IVT IVT AIVT IVT PIC24 8 PIC 1 PIC 24 0 15 16 15 TMR 1 7 0 IVT IVT TMR1 IVT
99. 0x8030 IPCO 0x7000 PR1 3126 main PIC TMR1 PH1 TMR1 24 void main void V Tools Interrupt Assistant Void Timer1Int jv ADDR_T1INTERRUPT c AUTO ilies AUTO void Timer 1Int OK ET TTT TT Set ISR name and select Interrupt Vector address U0K void Timer1IntO iv IVT_ADDR_T1INTERRUPT ics ICS _AUTO
100. 1 HA1 0000 0000 0000 0010 PORTA T PORTB ga 8 PURHTB 0 2 1 0 H L Low 0 L H High 1 H High A T A Hgh B Low A 0 10kO
101. 2STAT 0 Make sure edge2 is 0 CTMUCONb ts EDG1STAT 1 Set edge1 Start Charge delay us 5 Delay for CTMU charge time 5microSec CTMUCONbits EDG1STAT 0 Clear edge1 Stop Charge IFSObits AD1IF 0 AD1ICON1bits SAMP 0 Clear SAMP bit to begin manual A D conversion while IFSObits ADI1IF Wait for the A D conversion to finish ad val ADC1BUFO Read the value from the A D conversion AD1CON1bits SAMP 0 IFSObits AD1IIF 0 AD1CON1bits DONE 0 return ad val void main unsigned char n init while 1 for n 0 n lt 5 n Get value 5times add num Get _value delay ms 10 average add num 5 add num 0 Vreg 300 Set threshold value e x 300 if vreg lt average Led Out 1 1 Touch Finger je1set Led Out 1 1 No Finger inttostr average txt Lcd Out 2 Re txt BMHz 4 15X2LCD 28 PORHTB H
102. BO 0UFF J15 RBO LCD 1 No Finger 2 150 400 8MHz RBU ee LCD LCD1 Touch Finger
103. C MCU USB2 0 HEX PIC mikroProg Suite for PIC C mikroC Minimize MCU Family o Rend Verify F V Load Save CODE Load Save DATA HEX HEX DATA LTT el Options 7 ee ae Progress HEX 1
104. CD HOM USB Programmer Software SETUP EX E Next 2 accept the terms in the License Agreement Next 3 Next 4 mikr0C mikrnC mikrn0C C C Install 5 Finish dSPICF 300 USB USB
105. D CLEAR Led Cmd LCD CURSOR_OFF Lcd Out 1 pe ee txt1 Lcd Out 2 1 txt2 HEX OFF SW3 8 LCD UN LCD 1 HELLO 2 WORLD dsSPICF 300 dsPIC 0N
106. FF 5W3 8 LCD ON 5W2 6 RB1 8 RBUJ ON J15 HB LCD RS232C UART USB UART FT232R UAHRHT USB COM H5232C USB 1 1 126 FTZ232HL USB UART dsPICF 30 0 COM
107. ICS3FU06GS202 DIP28 dsPICS3FU16G65402 DIP28 dsPIC33FU16G5502 DIP28 dsPICS3FU12GP202 DIP28 dsPIC33FU12MC202 DIP28 dsPICS3FU32GP202 DIP28 dsPIC33FJU128GP802 DIP28 dsPICS3FU128GP202 DIP28 dSPICSSFU64GP802 DIP28 dsPICS3FU64GP202 DIP28 dsPICS3FJ32GP302 DIP28 dsPICS3FU32MC202 DIP28 dsPIC33FU128MC802 DIP28 dsPICS3FU128MC202 DIP28 dsPICS3FJ64MC802 DIP28 dsPICS3FU64MC202 DIP28 dsPICS3FU32MC302 DIP28 PIC24FO4KA200 DIP14 PIC2Z4FO4KA201 DIP20 PIC24FO8KA101 DIP20 PIC24F16KA101 DIP20 PIC24F16KA102 DIP20 PIC2Z4FO8KA102 DIP20 PIC24FU16GA002 DIP28 PIC24FJ32GAU02 DIP2O PIC24FU48GA002 DIP28 PIC24FJ64GAU02 DIP2O PIC24FJ32GA102 DIP28 PIC24FJ64GA102 DIP2O PIC24FJ32GBU0 DIP28 PIC24FJB4GBU02 DIP2O PIC24HJ12GP201 DIP18 PIC24HJ12GP202 DIP28 PIC24HJ32GP202 DIP28 PIC24HJ128GP802 DIP28 PIC24HJ128GP202 DIP28 PIC24HJ64GP802 DIP28 PIC24HJ64GP202 DIP28 PIC24HJ32GP302 DIP28 DIP PIC PIC dsPICF 300 IC PIC24F16KA102 SP PIC 1
108. None Advanced Next Incdude Libraries 0 Indude All Default Indude None Advanced a mikroC 1 6 Finish mikro 2
109. RS at LATB4 bit sbit LCD EN at LATB5 bit sbit LCD D4 at LATB6 bit sbit LCD D5 at LATAO bit sbit LCD D6 at LATAl bit sbit LCD D7 at LATA4 bit sbit LCD RS Direction at TRISB4 bit sbit LCD EN Direction at TRTSB5 bit sbit LCD D4 Direction at TRISB6 bit sbit LCD D5 Direction at TRISAO bit sbit LCD D6 Direction at TRISA1 bit sbit LCD D7 Direction at TRISA4 bit void main typedef char moji Arrayl5 moji txtl Hello moji txt2 World AD1PCFG 0x1C3F Led_Init Led Cmd LCD CLEAR Led Cmd LCD CURSOR_OFF Led Out 1 1 txt1 Led Out 2 1 txt2 typedef char moJi Array 5 1 char 5 moji typedeff typedef
110. V Vcc 0 LCD CN110 R er EL LE 7 CAN OV 17 2 3 4 5 6 7 CAN CANH CANL ll JUU UU UU SOK CAN MCP2551 RHX T X SW4 HB15 HB14 RB8 J6 CAN SW4 7 8 ON aa 5 R58 N oe 0 GND a HBB H L 8 799 23 0 LED LED H MCP2551 LED 1mA
111. e disabled Watchdog Timer Postscale 1 32 768 w WDT Prescaler wpr prescaler ratio of 1 138 Windowed Watchdog Jimer Disabled Watchdog Timer Disabled lt Brown out Reset Brown out Reset enabled in hardware SBOREN bit disabled Power up Timer Enabled Alternate 12C1 Pin Mapping Default location for SCL1 SDA1 pins Brown out Reset Voltage Brown out Reset set to lowest voltage 1 3 FICLR Pin Enabled ICD Pin Placement PGC L PGD1 are used for programming and debugging the device Background Debug Disabled C Deep Sleep Watchdog Timer Postscale 1 2 147 483 648 25 7 Days DSWDT Reference Clock Ipswpr uses LPRC as reference cock RTCC Reference Clock IRTcc uses SOSC as reference dock Deep Sleep Zero Power BOR Disabled Deep Sleep Watchdog Timer Disabled El UK dSPICF 300 SW4 PURTB UN OFF LCD PORTB LED 200
112. get ee a LL sccm IE i H ZIGBEE Ee See oer ie We H mTouch CAN i n Sg hi as aaal p one ene f Ium I ee Low High J6 0 23 LED 23 ZIGBEE AC USB USB OsPICF 300 AC USB LINK LED IC DC9V 2 1 AC D PHG ICD LED 500mA HS232C
113. he drivers are correctly installed 1 WindowsVista 7 WindowsVista 7 MWindows ViSta 1 2 3 4 UAC 5 UK
114. irection at TRISB4 bit sbit LCD EN Direction at TRISB5 bit sbit LCD D4 Direction at TRISB6 bit sbit LCD D5 Direction at TRISAO bit sbit LCD D6 Direction at TRISA1 bit sbit LCD D7 Direction at TRISA4 bit unsigned short cont 0 int average 0 add num 0 Vreg 0 char txt 7 void init CTMUCON CTMUCON 0x124 CTMUICON CTMUICON 0x300 ADC Setup AD1PCFG 0 AD1CON1 0 AD1CHS 0 AD1CSSL 0 AD1CON1b ts FORM 0 AD1CON3 0 AD1CON2 0 AD1CON1b ts ADON 1 CTMUCONbits CTMUEN 1 Led Init Led Cmd LCD CLEAR Led Cmd LCD CURSOR_OFF int Get Value int ad_val 0 AD1PCFG OxFFFF TRISB 0 LATB 0 PORTB 0 delay ms 5 TRISB 0x01 AD1PCFG OxFFFE delay ms 5 AD1CHS 0x002 CTMUCONbits TDTSSEN 1 delay ms 5 55uA TRNG1 TRNG0 1 1 gt A11 pin are analog select the analog channe10 Unsigned fractional format bits ADRC 0 Turn On A D Enable CTMU set all A D channels to digital I O pins Wait for charge to drain 5mS set input RBO AN2 RBO is analog input pin wait for A D to connect to channel select A D channel analog CH2 Drain any charge on the A D circuit Wait for charge to drain 27 CTMUCONbits TDTSSEN 0 Stop discharge of A D circuit IFSObits AD1IF 0 Make sure A D interrupt flag 0 ADICON1bits SAMP 1 Manually start sampling CTMUCONbits EDG
115. ndows lt mikroElektronika USB Devices by mikroEle MikroElektronika G D EARTIIDS lt E MikroElektronika A 8 0S rp
116. rection at TRISB4 bit sbit LCD EN Direction at TRISB5 bit sbit LCD D4 Direction at TRISB6 bit sbit LCD D5 Direction at TRISAO bit sbit LCD D6 Direction at TRISAI1 bit sbit LCD D7 Direction at TRISA4 bit void main char text 14 microtechnica inti ADPCFG OxFFFF Led Init Led Cmd LCD CLEAR Led Cmd LCD CURSOR_OFF for i 0 i lt 13 i Led Chr Cp text i Build type ICD Project Settin gs H mikroC PRO ford File Edit View P 1 amp PO Project Settings Elegie Device Name P24F96 sHuiq7as palog Eie J 4G MCU Clock Build Debugger Type Build Type ICD debug a a Build Debugger Type y Build Type Release Debugger PIC
117. ved O Dill ai ANSI C PIC dsPIC CF 300 mikro ANSI FIC C CD HUM mikr 0C dsPIC30UF dSPIC33F PIC24 6KB mikroC mikr0C C
Download Pdf Manuals
Related Search
Related Contents
Muvit MUCUN0277 mobile phone case Manual de instruções 取説(PDFファイル) BERG Elite+ EN Intel AXXGBIOMEZV a - lEs rEGlEs UrBaiNEs 城 里 町 環 境 セ ン タ ー コンプレッサー点検業務委託 ORDRE DU JOUR Solution Ultima Series Operators Manual Copyright © All rights reserved.
Failed to retrieve file