SlideShare uma empresa Scribd logo
1 de 20
Baixar para ler offline


      

                     ‫ﺍﻟﺘﺠﺎﺭﺏ ﺍﻟﻌﻤﻠﻴﺔ‬

                  

                          




                          




                   Programming
      Embedded Systems Microcontroller

You Can Practice Microcontroller Programming Easily Now!
      WALID BALID, Tuesday, December 15, 2009
                                                                       

      Exp.18: Interfacing n-Switch to a Single PIN    

                                                                                      
                                            
                                                                                       




 
                SW2S426 
                                                                                         
                   
  
                                                                        

                          132                     
Practical Class 7                                                                         Programming Microcontrollers

                                                                                                  
                                   
                                                               
                                                                                          
                                                        ADSC Start ADC  Single
Config Adc= Single/Free,                                                                           .Getadc 

Prescaler = Auto,                                       Start ADCFree
                                                         ADCH          
Reference = off|Avcc|internal
                                                                                                           and ADCL
                                                                              Prescaler
                                                                               Reference
Start Adc                                                                               
Stop Adc                                                                        
var = Getadc(channel)                                       channel

                                                 Prescaler   
                                            
                                             50 ~200 KHz
                                                 
                                            
                                            200KHz
                                                                                                   

 2.56VInternal Reference
AVCC

 Vref
                                                                                                         of 
                                                                                                               f

                                                        AVR
                                      AVRmega
                                                                                        10-bit §
                                                                                     0 - VCC §
                                                                                      ±2 LSB §

Faculty of Electrical and Electronic Eng.                     133                  Automatic Control & Automation Dept.
                                                                               

                                                                                0.5 LSB §
                                                                      13 – 260 Micro Sec §




 
                                                                15KSPS §
                                                           2.56V §
                                                                         Single, Free §
                                                                     §
                                                                        §
                                                                   50 ~1000 KHz §
                                          §
                                             §
                      x10 – x200 §

             AVR

                  
                                         
                                              R=100Ω, C=100nFRCL=100uH, C=100nFLC
                                                    
                                                                                      ± 0.3V
                                                  
                                                 
                                            
                                                  
                                                  

                             134                          
Practical Class 7                                                                 Programming Microcontrollers

        Idle mode      
     
                                                                    “Single” ü
                                             “Enable ADC ” ü
                               “Start ADC ” ü
                                                                “Idle ” ü
 ü

                 
                                                                 “Stop ADC ” ü

 ADC 




Faculty of Electrical and Electronic Eng.                135               Automatic Control & Automation Dept.
                                                                                  

                                                                                
   210=1024  10-bit   AVR       
                                   0 – VCC 0 – 1023



                                                       =
                                                               ×
                                



                                                                                                        
                                                                                                          
                                                                        Vin
                                                                              Vref
                                            


                                                =
                                                              ×


                                                                                                                 
                 ADC


                                            =
                                                (                 )×       ×


                                                                                                        
                                                                                                          
                                                      V Pos
                                                     VNeg
                                            1X, 10X, 200XGAIN

                                                      ADC val

                                          0 → 511 ≫
                                        512 → 1023 ≫



                                                                                                                 
                                                                                                                 
                                                                                                                 
                            136                        
Practical Class 7                                                                  Programming Microcontrollers

                                                                                        
$regfile = "m128def.dat"
$crystal = 8000000                                                               
'-----------------------
Config Lcdpin = Pin , Db4 = Portc.4 , Db5 =                          
Portc.5 , Db6 = Portc.6 , Db7 = Portc.7 , E
= Portc.2 , Rs = Portc.3                                                        
Config Lcd = 20 * 4
                                                                                      
Config Adc = Single , Prescaler = Auto ,                                
Reference = Avcc
Start Adc
'----------------------                                                        
Dim W1 As Word , Voltage As Single
Dim Sw As String * 1
Const V_ref = 5
'----------------------                                                
Do                                                                       
   Gosub Get_var                                                  
   Gosub Check_sw
   Gosub Show_temp
   Wait 1
Loop
'----------------------                                         
                                                                           
Get_var:
   W1 = Getadc(5)
   Voltage = W1 * V_ref
   Voltage = Voltage / 1024
Return
'----------------------
                                                                
Check_sw:
                                                                              
   Select Case          W1
      Case 150          To   250       :   Sw   =   "1"
      Case 300          To   400       :   Sw   =   "2"
      Case 550          To   700       :   Sw   =   "3"
      Case 750          To   850       :   Sw   =   "4"

       Case Else : Sw = "-"
   End Select
Return
'----------------------                                              
Show_temp:                                                                    
   Cls
   Locate 1 , 1 : Lcd "VAR1= " ; W1
   Locate 2 , 1 : Lcd "VOLT= " ; Voltage
   Locate 3 , 1 : Lcd "Switch NO. " ; Sw
Return

                                                                                                               
                                  


Faculty of Electrical and Electronic Eng.                 137               Automatic Control & Automation Dept.
                                                                               

      Exp.19: Reading Analog Liner Voltage                         


                                                                                                
                                          
                                                                                                 




 
                                                                                               
                                      SW2S424,5
                                                                                                 
                     
                                                           R107, R100
                                138                       
Practical Class 7                                                              Programming Microcontrollers

                                                                                     
$regfile = "m128def.dat"
$crystal = 8000000                                                           
'-----------------------
Config Lcdpin = Pin , Db4 = Portc.4 , Db5 =                      
Portc.5 , Db6 = Portc.6 , Db7 = Portc.7 , E
= Portc.2 , Rs = Portc.3                                                    
Config Lcd = 20 * 4                                                               
                                                                                    
Config Adc = Single , Prescaler = Auto ,
Reference = Avcc                                                    
Start Adc
'----------------------
Dim W1 As Integer , W2 As Integer ,                                        
Temperature As Integer
Dim Voltage1 As Single , Voltage2 As Single
Const V_ref = 5
'----------------------                                             
                                                                     
Do
   Gosub Get_var                                              
   Gosub Show_var
   Wait 1
Loop
'----------------------

Get_var:                                                     
   W1 = Getadc(3)
   W2 = Getadc(4)
                                                                

     Voltage1 = W1 * V_ref
     Voltage1 = Voltage1 / 1024

   Voltage2 = W2 * V_ref
   Voltage2 = Voltage2 / 1024
Return
'----------------------

Show_var:
                                                                   
   Cls                                                                    
   Locate       1   ,   1   :   Lcd   "VAR1= " ; W1
   Locate       2   ,   1   :   Lcd   "VAR2= " ; W2
   Locate       3   ,   1   :   Lcd   "VOLT1= " ; Voltage1
   Locate       3   ,   1   :   Lcd   "VOLT2= " ; Voltage2
Return
                                                                                                              

                                                                                                              

                                                                                                              

                                                                                                              

                                                                                                              

                                                                                                              

                                                                                                              
Faculty of Electrical and Electronic Eng.              139              Automatic Control & Automation Dept.
                                                                           

                                                                                                                  


      Exp.20: Interfacing LDR                          


                                                                                            
              
                                                                                             




 
                                                                                           
                                      SW2S421

                                                                                             
          
          CDS
       100Ω
                      
                      350nm ~ 800nm2MΩ


                                                      =     ×        .
                   LDRillumination

                                                                                                      
                              140                     
Practical Class 7                                                                  Programming Microcontrollers

                                             LUXL 340x103A
                                             
             LDR Technical Specifications
Dark Resistance                        1MΩ
Resistance @ 10 Lux                 10 – 20 KΩ
Resistance @ 100 Lux                 2 – 4 KΩ
Peak Spectral response                540nm
Maximum Voltage                150V peak AC or DC
Power Dissipation                    100mW
Operating Temperature             -30°C to + 70°C
                                                                                        
$regfile = "m128def.dat"
$crystal = 8000000                                                                
'-----------------------
Config Lcdpin = Pin , Db4 = Portc.4 , Db5 =
                                                                      
Portc.5 , Db6 = Portc.6 , Db7 = Portc.7 , E                                     
= Portc.2 , Rs = Portc.3
Config Lcd = 20 * 4                                                                    
                                                                                       
Config Adc = Single , Prescaler = Auto ,
Reference = Avcc                                                         
Start Adc
'----------------------
Dim Ldr_r As Single, W1 As Word                                                
Dim Vin As Single
Dim Var1 As Single , Var2 As Single
Const V_ref = 5 : Const Vcc = 5
Const R_serial = 10000                                                  
'----------------------
                                                                          
Do                                                                 
   Gosub Get_adc
   Gosub Calc_r                                                    
   Gosub Show_val
   Wait 1
Loop                                                                  
'----------------------

Get_adc:
   W1 = Getadc(0)
Return
'----------------------                                         
                                                                               
Calc_r:
   Vin = W1 * V_ref
                                                                   'LDR R=(Vin.10K)/(Vcc-Vin)
   Vin = Vin / 1024

   Var1 = Vcc - Vin
   Var2 = Vin * R_serial
   Ldr_r = Var2 / Var1                                                   
Return
'----------------------                                                       

Show_val:

Faculty of Electrical and Electronic Eng.                141                 Automatic Control & Automation Dept.
                                                                           

   Cls
   Locate 1 , 1 : Lcd "ADC= " ; W1
   Locate 2 , 1 : Lcd "Vin= " ; Vin
   Locate 3 , 1 : Lcd "LDR= " ; Ldr_r
Return



Exp.21: Interfacing NTC Resistor                  NTC


                                                                                      
                                           NTC
                                                                                       




                                                                                     
                                SW2S422

                                                                                       
                                             Negative Temperature ) NTC    
                                                   (Coefcient
                                                                                        i
                                                                                        f
                                             


                        142                     
Practical Class 7                                                                    Programming Microcontrollers

                                                                                                        

                
10K 25°C
                                            

                                                        


                                        =            ×
                                                                      25°C
                                                    3450
 
                                                                            


                                    °   =                                −

                                                                                                        
                                                                                                          
                                                           
                                                              
                                                           273°K
                                                   273°K + 25°C = 298°K
                                                               


                                °       =                                 −

                                                                                                        
                                                                                                          
                                                           


                                                                                                                
                                                                                                                

Faculty of Electrical and Electronic Eng.                   143                Automatic Control & Automation Dept.
                                                                

                                                                                               
                                                                                               
                                                                                               
                                                                                               


                                                                       
$regfile = "m128def.dat"
$crystal = 8000000                                              
'-----------------------                            
Config Lcdpin = Pin , Db4 = Portc.4 , Db5 =
Portc.5 , Db6 = Portc.6 , Db7 = Portc.7 , E                    
= Portc.2 , Rs = Portc.3
Config Lcd = 20 * 4                                                  
                                                                     
Config Adc = Single , Prescaler = Auto ,
Reference = Avcc                                       
Start Adc
'----------------------
Dim W1 As Word , Voltage As Single                            
Dim Temp As Single
Dim F1 As Single, Ntc_volt As Single
Const V_ref = 5                                        
'----------------------
Do                                                      
   Gosub Get_temp                                
   Gosub Show_temp
   Wait 1
Loop
'----------------------
Get_temp:
   W1 = Getadc(1)                               
    Ntc_volt = W1 * V_ref                              
    Ntc_volt = Ntc_volt / 1024                 'Beta/Tamp = 4250/298 = 14.2167
   F1 = 1024 - W1
   F1 = W1 / F1
   F1 = Log(f1)
   F1 = F1 + 14.2617
   F1 = 4250 / F1
   Temp = F1 - 273
Return
'----------------------                                
Show_temp:
   Cls                                                       
   Locate 1 , 1 : Lcd "VAR1= " ; W1
   Locate 2 , 1 : Lcd "VOLT= " ; Ntc_volt
   Locate 3 , 1 : Lcd "TEMP= " ; Temp
Return
                                                                                               


         144                         
Practical Class 7                                                              Programming Microcontrollers

  Exp.22: Interfacing LM35                            LM35


                                                                                          
                             LM35DZ
                                                                                           -45°C ~ +145°C
                                                                                          




 

                                                                                        
                                  SW2S427,8

                                                                                           
         LM35     
           12 V
                                                                                                            

  Faculty of Electrical and Electronic Eng.               145              Automatic Control & Automation Dept.
                                                                                    



                                                ℃ →
                                     


                           


                                      =                  =                      =4
                                               ×             .      ×
       10mV

                                                                    .
                  4
                                                                                                                   
                                                                                           
$regfile = "m128def.dat"
$crystal = 8000000                                                                
'-----------------------
Config Lcdpin = Pin , Db4 = Portc.4 , Db5 =
                                                                    
Portc.5 , Db6 = Portc.6 , Db7 = Portc.7 , E
= Portc.2 , Rs = Portc.3                                                         
Config Lcd = 20 * 4
                                                                                         
Config Adc = Single , Prescaler = Auto ,                                 
Reference = Internal
Start Adc
'----------------------                                                         
Dim W1 As Integer , W2 As Integer ,
Temperature As Integer
'----------------------                                                  

Do
                                                                          
   Gosub Get_temp                                                 
   Gosub Show_temp
   Wait 1
Loop
'----------------------                                       
Get_temp:                                                                        
   W1 = Getadc(6)                                                        ' 4 steps = 1 degree
   W2 = Getadc(7)
   Temperature = W1 - W2
   Temperature = Temperature / 4
Return
'----------------------
                                                                         
Show_temp:                                                                     
   Cls
   Lcd "Temp= " ; Temperature ; " C"
Return
                                                                                                                   

                                                                                                                   

                       146                               
Practical Class 7                                                                  Programming Microcontrollers

 Exp.23: Interfacing Pressure Sensor                             


                                                                                             
                                              
                                                                                             




 

                                                                                           
                                   SW2S423

                                                                                              
 “Freescale”     MPXAZ6115A      
                                                                      

 Faculty of Electrical and Electronic Eng.                147                 Automatic Control & Automation Dept.
                                                                                    

15 ~ 115 kPa(kilopascals)
                                                                     101.325-kPa 1-atm(atmosphere)
                                         Atmosphere = 101,325 * Pascal
                                           Atmosphere = 1.013 * bar

                        15 ~ 115 kPa0.2V ~ 4.8V

                  

         =        × ( .          ×    − .      ) ∓ (                        ×                     × 0.009 ×      )
                                               = .      ∓ .




                      

 
     


                                                               =       × ( .          ×    − .          )
                                                           1.5kPa


                                                               

                                                                   =                  +
                                                                                              .
                                                                        .       ×             .

                             100m    7mbar      
                           310mbar8848m
                                      
                            Pressure-to-altitudeAltimeters

                           148                          
.         / ∙
                      ℎ=                         ∙ 1−
Practical Class 7                                                                     Programming Microcontrollers


                                       .
                                 .          /

Zero altitude pressure = 101325Pa = 1’013.25mbar; (100Pa = 1mbar)
Zero altitude temperature = 288.15K

                                       =        = 287.052
Temperature gradient = 6.5K/1000m
                                            ∗

                                                             .
R is the specifc gas cons tant :
              i

12km 

                                                              +/-100m

                                                                                           
$regfile = "m128def.dat"
$crystal = 8000000                                                                  
'-----------------------
Config Lcdpin = Pin , Db4 = Portc.4 , Db5 =
                                                                        
Portc.5 , Db6 = Portc.6 , Db7 = Portc.7 , E
= Portc.2 , Rs = Portc.3                                                           
Config Lcd = 20 * 4
                                                                                         
Config Adc = Single , Prescaler = Auto ,                                   
Reference = Avcc
Start Adc
'----------------------                                                           
Dim W1 As Word , Voltage As Single ,
Pressure As Single
Const V_ref = 5
'----------------------                                                    
                                                                            
Do
   Gosub Get_temp                                                     
   Gosub Show_temp
   Wait 1
Loop
'----------------------
                                                                           
Get_temp:                                                             
   W1 = Getadc(2)
   Voltage = W1 * V_ref                                                            
   Voltage = Voltage / 1024

   Pressure = Voltage / 0.045
   Pressure = Pressure + 10.55
Return                                                                     
'----------------------
                                                                                 
Show_temp:
   Cls

Faculty of Electrical and Electronic Eng.                    149               Automatic Control & Automation Dept.
                                                                            

   Locate 1 , 1 : Lcd "VAR1= " ; W1
   Locate 2 , 1 : Lcd "VOLT= " ; Voltage
   Locate 3 , 1 : Lcd "PRES= " ; Pressure
Return



                                                                                   
 LM317




                        
               1.3V~5VP62R118
                                LM385LM317
                                                                  LM385
                                                                            1.3V:LM385-1.3
                                                                            2.5V:LM385-2.5
                                               1.1V~5VLM385




                                  




                                        
                         150                     

Mais conteúdo relacionado

Mais procurados

3相ACモーターのスパイスモデルの概要
3相ACモーターのスパイスモデルの概要3相ACモーターのスパイスモデルの概要
3相ACモーターのスパイスモデルの概要Tsuyoshi Horigome
 
Concept Kit:PWM Buck Converter Transients Model
Concept Kit:PWM Buck Converter Transients ModelConcept Kit:PWM Buck Converter Transients Model
Concept Kit:PWM Buck Converter Transients ModelTsuyoshi Horigome
 
Electronic circuit design lab manual
Electronic circuit design lab manualElectronic circuit design lab manual
Electronic circuit design lab manualawais ahmad
 
ICE Presentation: Integrated Component Characterization Environment
ICE Presentation: Integrated Component Characterization EnvironmentICE Presentation: Integrated Component Characterization Environment
ICE Presentation: Integrated Component Characterization EnvironmentNMDG NV
 
DRV401AIDWPG4
DRV401AIDWPG4DRV401AIDWPG4
DRV401AIDWPG4spicepark
 
MUSES8920の英語のデータシート
MUSES8920の英語のデータシートMUSES8920の英語のデータシート
MUSES8920の英語のデータシートspicepark
 
Synchronous Buck Converter using LTspice
Synchronous Buck Converter using LTspiceSynchronous Buck Converter using LTspice
Synchronous Buck Converter using LTspiceTsuyoshi Horigome
 
W-BAND RADIOMETER SYSTEM WITH SWITCHING FRONT-END FOR MULTI-LOAD CALIBRATION.pdf
W-BAND RADIOMETER SYSTEM WITH SWITCHING FRONT-END FOR MULTI-LOAD CALIBRATION.pdfW-BAND RADIOMETER SYSTEM WITH SWITCHING FRONT-END FOR MULTI-LOAD CALIBRATION.pdf
W-BAND RADIOMETER SYSTEM WITH SWITCHING FRONT-END FOR MULTI-LOAD CALIBRATION.pdfgrssieee
 
The Analysis of Dead Time on Switching Loss in High and Low Side MOSFETs of Z...
The Analysis of Dead Time on Switching Loss in High and Low Side MOSFETs of Z...The Analysis of Dead Time on Switching Loss in High and Low Side MOSFETs of Z...
The Analysis of Dead Time on Switching Loss in High and Low Side MOSFETs of Z...IDES Editor
 
Elm327 Use Manual - How to use elm327 obd 2 scanner
Elm327 Use Manual - How to use elm327 obd 2 scannerElm327 Use Manual - How to use elm327 obd 2 scanner
Elm327 Use Manual - How to use elm327 obd 2 scannerjosy jiang
 
FSLP Presentation: Fast Source- and Load-Pull using your VNA at its full powe...
FSLP Presentation: Fast Source- and Load-Pull using your VNA at its full powe...FSLP Presentation: Fast Source- and Load-Pull using your VNA at its full powe...
FSLP Presentation: Fast Source- and Load-Pull using your VNA at its full powe...NMDG NV
 
Programming And Controlling Puma Arms
Programming And Controlling Puma ArmsProgramming And Controlling Puma Arms
Programming And Controlling Puma Arms블로그코디
 
A3918 low voltage dc motor driver allegro datasheet[1]
A3918 low voltage dc motor driver allegro   datasheet[1]A3918 low voltage dc motor driver allegro   datasheet[1]
A3918 low voltage dc motor driver allegro datasheet[1]putchi56
 

Mais procurados (20)

3相ACモーターのスパイスモデルの概要
3相ACモーターのスパイスモデルの概要3相ACモーターのスパイスモデルの概要
3相ACモーターのスパイスモデルの概要
 
Concept Kit:PWM Buck Converter Transients Model
Concept Kit:PWM Buck Converter Transients ModelConcept Kit:PWM Buck Converter Transients Model
Concept Kit:PWM Buck Converter Transients Model
 
SPICE Model of TA7291P
SPICE Model of TA7291PSPICE Model of TA7291P
SPICE Model of TA7291P
 
LM555
LM555LM555
LM555
 
Electronic circuit design lab manual
Electronic circuit design lab manualElectronic circuit design lab manual
Electronic circuit design lab manual
 
R2 R
R2 RR2 R
R2 R
 
ICE Presentation: Integrated Component Characterization Environment
ICE Presentation: Integrated Component Characterization EnvironmentICE Presentation: Integrated Component Characterization Environment
ICE Presentation: Integrated Component Characterization Environment
 
DRV401AIDWPG4
DRV401AIDWPG4DRV401AIDWPG4
DRV401AIDWPG4
 
I1000 d ugm
I1000 d ugmI1000 d ugm
I1000 d ugm
 
MUSES8920の英語のデータシート
MUSES8920の英語のデータシートMUSES8920の英語のデータシート
MUSES8920の英語のデータシート
 
Synchronous Buck Converter using LTspice
Synchronous Buck Converter using LTspiceSynchronous Buck Converter using LTspice
Synchronous Buck Converter using LTspice
 
W-BAND RADIOMETER SYSTEM WITH SWITCHING FRONT-END FOR MULTI-LOAD CALIBRATION.pdf
W-BAND RADIOMETER SYSTEM WITH SWITCHING FRONT-END FOR MULTI-LOAD CALIBRATION.pdfW-BAND RADIOMETER SYSTEM WITH SWITCHING FRONT-END FOR MULTI-LOAD CALIBRATION.pdf
W-BAND RADIOMETER SYSTEM WITH SWITCHING FRONT-END FOR MULTI-LOAD CALIBRATION.pdf
 
44
4444
44
 
The Analysis of Dead Time on Switching Loss in High and Low Side MOSFETs of Z...
The Analysis of Dead Time on Switching Loss in High and Low Side MOSFETs of Z...The Analysis of Dead Time on Switching Loss in High and Low Side MOSFETs of Z...
The Analysis of Dead Time on Switching Loss in High and Low Side MOSFETs of Z...
 
Lm741
Lm741Lm741
Lm741
 
Elm327 Use Manual - How to use elm327 obd 2 scanner
Elm327 Use Manual - How to use elm327 obd 2 scannerElm327 Use Manual - How to use elm327 obd 2 scanner
Elm327 Use Manual - How to use elm327 obd 2 scanner
 
FSLP Presentation: Fast Source- and Load-Pull using your VNA at its full powe...
FSLP Presentation: Fast Source- and Load-Pull using your VNA at its full powe...FSLP Presentation: Fast Source- and Load-Pull using your VNA at its full powe...
FSLP Presentation: Fast Source- and Load-Pull using your VNA at its full powe...
 
Programming And Controlling Puma Arms
Programming And Controlling Puma ArmsProgramming And Controlling Puma Arms
Programming And Controlling Puma Arms
 
Ec ii lab manual
Ec ii lab manualEc ii lab manual
Ec ii lab manual
 
A3918 low voltage dc motor driver allegro datasheet[1]
A3918 low voltage dc motor driver allegro   datasheet[1]A3918 low voltage dc motor driver allegro   datasheet[1]
A3918 low voltage dc motor driver allegro datasheet[1]
 

Destaque

Embedded System Microcontroller Interactive Course using BASCOM-AVR - Lecture3
Embedded System Microcontroller Interactive Course using BASCOM-AVR - Lecture3Embedded System Microcontroller Interactive Course using BASCOM-AVR - Lecture3
Embedded System Microcontroller Interactive Course using BASCOM-AVR - Lecture3AL-AWAIL for Electronic Engineering
 
Embedded System Microcontroller Interactive Course using BASCOM-AVR - Lecture4
Embedded System Microcontroller Interactive Course using BASCOM-AVR - Lecture4Embedded System Microcontroller Interactive Course using BASCOM-AVR - Lecture4
Embedded System Microcontroller Interactive Course using BASCOM-AVR - Lecture4AL-AWAIL for Electronic Engineering
 
Embedded System Microcontroller Interactive Course using BASCOM-AVR - Lecture9
Embedded System Microcontroller Interactive Course using BASCOM-AVR - Lecture9Embedded System Microcontroller Interactive Course using BASCOM-AVR - Lecture9
Embedded System Microcontroller Interactive Course using BASCOM-AVR - Lecture9AL-AWAIL for Electronic Engineering
 
Embedded System Microcontroller Interactive Course using BASCOM-AVR - Lecture11
Embedded System Microcontroller Interactive Course using BASCOM-AVR - Lecture11Embedded System Microcontroller Interactive Course using BASCOM-AVR - Lecture11
Embedded System Microcontroller Interactive Course using BASCOM-AVR - Lecture11AL-AWAIL for Electronic Engineering
 
Embedded System Microcontroller Interactive Course using BASCOM-AVR - Lecture12
Embedded System Microcontroller Interactive Course using BASCOM-AVR - Lecture12Embedded System Microcontroller Interactive Course using BASCOM-AVR - Lecture12
Embedded System Microcontroller Interactive Course using BASCOM-AVR - Lecture12AL-AWAIL for Electronic Engineering
 
Embedded System Microcontroller Interactive Course using BASCOM-AVR - Lecture8
Embedded System Microcontroller Interactive Course using BASCOM-AVR - Lecture8Embedded System Microcontroller Interactive Course using BASCOM-AVR - Lecture8
Embedded System Microcontroller Interactive Course using BASCOM-AVR - Lecture8AL-AWAIL for Electronic Engineering
 
Embedded System Microcontroller Interactive Course using BASCOM-AVR -Lecture5
Embedded System Microcontroller Interactive Course using BASCOM-AVR -Lecture5Embedded System Microcontroller Interactive Course using BASCOM-AVR -Lecture5
Embedded System Microcontroller Interactive Course using BASCOM-AVR -Lecture5AL-AWAIL for Electronic Engineering
 

Destaque (7)

Embedded System Microcontroller Interactive Course using BASCOM-AVR - Lecture3
Embedded System Microcontroller Interactive Course using BASCOM-AVR - Lecture3Embedded System Microcontroller Interactive Course using BASCOM-AVR - Lecture3
Embedded System Microcontroller Interactive Course using BASCOM-AVR - Lecture3
 
Embedded System Microcontroller Interactive Course using BASCOM-AVR - Lecture4
Embedded System Microcontroller Interactive Course using BASCOM-AVR - Lecture4Embedded System Microcontroller Interactive Course using BASCOM-AVR - Lecture4
Embedded System Microcontroller Interactive Course using BASCOM-AVR - Lecture4
 
Embedded System Microcontroller Interactive Course using BASCOM-AVR - Lecture9
Embedded System Microcontroller Interactive Course using BASCOM-AVR - Lecture9Embedded System Microcontroller Interactive Course using BASCOM-AVR - Lecture9
Embedded System Microcontroller Interactive Course using BASCOM-AVR - Lecture9
 
Embedded System Microcontroller Interactive Course using BASCOM-AVR - Lecture11
Embedded System Microcontroller Interactive Course using BASCOM-AVR - Lecture11Embedded System Microcontroller Interactive Course using BASCOM-AVR - Lecture11
Embedded System Microcontroller Interactive Course using BASCOM-AVR - Lecture11
 
Embedded System Microcontroller Interactive Course using BASCOM-AVR - Lecture12
Embedded System Microcontroller Interactive Course using BASCOM-AVR - Lecture12Embedded System Microcontroller Interactive Course using BASCOM-AVR - Lecture12
Embedded System Microcontroller Interactive Course using BASCOM-AVR - Lecture12
 
Embedded System Microcontroller Interactive Course using BASCOM-AVR - Lecture8
Embedded System Microcontroller Interactive Course using BASCOM-AVR - Lecture8Embedded System Microcontroller Interactive Course using BASCOM-AVR - Lecture8
Embedded System Microcontroller Interactive Course using BASCOM-AVR - Lecture8
 
Embedded System Microcontroller Interactive Course using BASCOM-AVR -Lecture5
Embedded System Microcontroller Interactive Course using BASCOM-AVR -Lecture5Embedded System Microcontroller Interactive Course using BASCOM-AVR -Lecture5
Embedded System Microcontroller Interactive Course using BASCOM-AVR -Lecture5
 

Semelhante a Embedded System Microcontroller Interactive Course using BASCOM-AVR -Lecture7

SPICE MODEL of MP4212 (Standard+BDS N&P Model) in SPICE PARK
SPICE MODEL of MP4212 (Standard+BDS N&P Model) in SPICE PARKSPICE MODEL of MP4212 (Standard+BDS N&P Model) in SPICE PARK
SPICE MODEL of MP4212 (Standard+BDS N&P Model) in SPICE PARKTsuyoshi Horigome
 
SPICE MODEL of MP4212 (Professional+BDP N&P Model) in SPICE PARK
SPICE MODEL of MP4212 (Professional+BDP N&P Model) in SPICE PARKSPICE MODEL of MP4212 (Professional+BDP N&P Model) in SPICE PARK
SPICE MODEL of MP4212 (Professional+BDP N&P Model) in SPICE PARKTsuyoshi Horigome
 
SPICE MODEL of NJM78LR05 in SPICE PARK
SPICE MODEL of NJM78LR05 in SPICE PARKSPICE MODEL of NJM78LR05 in SPICE PARK
SPICE MODEL of NJM78LR05 in SPICE PARKTsuyoshi Horigome
 
SPICE MODEL of TPC8024-H (Professional+BDP Model) in SPICE PARK
SPICE MODEL of TPC8024-H (Professional+BDP Model) in SPICE PARKSPICE MODEL of TPC8024-H (Professional+BDP Model) in SPICE PARK
SPICE MODEL of TPC8024-H (Professional+BDP Model) in SPICE PARKTsuyoshi Horigome
 
SPICE MODEL of TPCF8302 (Professional+BDP Model) in SPICE PARK
SPICE MODEL of TPCF8302 (Professional+BDP Model) in SPICE PARKSPICE MODEL of TPCF8302 (Professional+BDP Model) in SPICE PARK
SPICE MODEL of TPCF8302 (Professional+BDP Model) in SPICE PARKTsuyoshi Horigome
 
SPICE MODEL of 2SK3872-01SJ (Professional+BDS Model) in SPICE PARK
SPICE MODEL of 2SK3872-01SJ (Professional+BDS Model) in SPICE PARKSPICE MODEL of 2SK3872-01SJ (Professional+BDS Model) in SPICE PARK
SPICE MODEL of 2SK3872-01SJ (Professional+BDS Model) in SPICE PARKTsuyoshi Horigome
 
SPICE MODEL of 2SK3872-01SJ (Professional+BDP Model) in SPICE PARK
SPICE MODEL of 2SK3872-01SJ (Professional+BDP Model) in SPICE PARKSPICE MODEL of 2SK3872-01SJ (Professional+BDP Model) in SPICE PARK
SPICE MODEL of 2SK3872-01SJ (Professional+BDP Model) in SPICE PARKTsuyoshi Horigome
 
SPICE MODEL of 2SK3872-01SJ (Standard+BDS Model) in SPICE PARK
SPICE MODEL of 2SK3872-01SJ (Standard+BDS Model) in SPICE PARKSPICE MODEL of 2SK3872-01SJ (Standard+BDS Model) in SPICE PARK
SPICE MODEL of 2SK3872-01SJ (Standard+BDS Model) in SPICE PARKTsuyoshi Horigome
 
SPICE MODEL of 2SK3872-01L (Professional+BDP Model) in SPICE PARK
SPICE MODEL of 2SK3872-01L (Professional+BDP Model) in SPICE PARKSPICE MODEL of 2SK3872-01L (Professional+BDP Model) in SPICE PARK
SPICE MODEL of 2SK3872-01L (Professional+BDP Model) in SPICE PARKTsuyoshi Horigome
 
SPICE MODEL of 2SK3872-01L (Standard+BDS Model) in SPICE PARK
SPICE MODEL of 2SK3872-01L (Standard+BDS Model) in SPICE PARKSPICE MODEL of 2SK3872-01L (Standard+BDS Model) in SPICE PARK
SPICE MODEL of 2SK3872-01L (Standard+BDS Model) in SPICE PARKTsuyoshi Horigome
 
Master thesis presentation
Master thesis presentationMaster thesis presentation
Master thesis presentationMayur Sarode
 
SPICE MODEL of 2SK3872-01S (Professional+BDP Model) in SPICE PARK
SPICE MODEL of 2SK3872-01S (Professional+BDP Model) in SPICE PARKSPICE MODEL of 2SK3872-01S (Professional+BDP Model) in SPICE PARK
SPICE MODEL of 2SK3872-01S (Professional+BDP Model) in SPICE PARKTsuyoshi Horigome
 
SPICE MODEL of 2SK3869 (Standard+BDS Model) in SPICE PARK
SPICE MODEL of 2SK3869 (Standard+BDS Model) in SPICE PARKSPICE MODEL of 2SK3869 (Standard+BDS Model) in SPICE PARK
SPICE MODEL of 2SK3869 (Standard+BDS Model) in SPICE PARKTsuyoshi Horigome
 
SPICE MODEL of TPC8203 (Standard+BDS Model) in SPICE PARK
SPICE MODEL of TPC8203 (Standard+BDS Model) in SPICE PARKSPICE MODEL of TPC8203 (Standard+BDS Model) in SPICE PARK
SPICE MODEL of TPC8203 (Standard+BDS Model) in SPICE PARKTsuyoshi Horigome
 
SPICE MODEL of TPC6104 (Professional+BDP Model) in SPICE PARK
SPICE MODEL of TPC6104 (Professional+BDP Model) in SPICE PARKSPICE MODEL of TPC6104 (Professional+BDP Model) in SPICE PARK
SPICE MODEL of TPC6104 (Professional+BDP Model) in SPICE PARKTsuyoshi Horigome
 

Semelhante a Embedded System Microcontroller Interactive Course using BASCOM-AVR -Lecture7 (20)

At24 c512b
At24 c512bAt24 c512b
At24 c512b
 
Ads7843
Ads7843Ads7843
Ads7843
 
SPICE MODEL of MP4212 (Standard+BDS N&P Model) in SPICE PARK
SPICE MODEL of MP4212 (Standard+BDS N&P Model) in SPICE PARKSPICE MODEL of MP4212 (Standard+BDS N&P Model) in SPICE PARK
SPICE MODEL of MP4212 (Standard+BDS N&P Model) in SPICE PARK
 
SPICE MODEL of MP4212 (Professional+BDP N&P Model) in SPICE PARK
SPICE MODEL of MP4212 (Professional+BDP N&P Model) in SPICE PARKSPICE MODEL of MP4212 (Professional+BDP N&P Model) in SPICE PARK
SPICE MODEL of MP4212 (Professional+BDP N&P Model) in SPICE PARK
 
Adf7901
Adf7901Adf7901
Adf7901
 
SPICE MODEL of NJM78LR05 in SPICE PARK
SPICE MODEL of NJM78LR05 in SPICE PARKSPICE MODEL of NJM78LR05 in SPICE PARK
SPICE MODEL of NJM78LR05 in SPICE PARK
 
SPICE MODEL of TPC8024-H (Professional+BDP Model) in SPICE PARK
SPICE MODEL of TPC8024-H (Professional+BDP Model) in SPICE PARKSPICE MODEL of TPC8024-H (Professional+BDP Model) in SPICE PARK
SPICE MODEL of TPC8024-H (Professional+BDP Model) in SPICE PARK
 
SPICE MODEL of TPCF8302 (Professional+BDP Model) in SPICE PARK
SPICE MODEL of TPCF8302 (Professional+BDP Model) in SPICE PARKSPICE MODEL of TPCF8302 (Professional+BDP Model) in SPICE PARK
SPICE MODEL of TPCF8302 (Professional+BDP Model) in SPICE PARK
 
SPICE MODEL of 2SK3872-01SJ (Professional+BDS Model) in SPICE PARK
SPICE MODEL of 2SK3872-01SJ (Professional+BDS Model) in SPICE PARKSPICE MODEL of 2SK3872-01SJ (Professional+BDS Model) in SPICE PARK
SPICE MODEL of 2SK3872-01SJ (Professional+BDS Model) in SPICE PARK
 
SPICE MODEL of 2SK3872-01SJ (Professional+BDP Model) in SPICE PARK
SPICE MODEL of 2SK3872-01SJ (Professional+BDP Model) in SPICE PARKSPICE MODEL of 2SK3872-01SJ (Professional+BDP Model) in SPICE PARK
SPICE MODEL of 2SK3872-01SJ (Professional+BDP Model) in SPICE PARK
 
SPICE MODEL of 2SK3872-01SJ (Standard+BDS Model) in SPICE PARK
SPICE MODEL of 2SK3872-01SJ (Standard+BDS Model) in SPICE PARKSPICE MODEL of 2SK3872-01SJ (Standard+BDS Model) in SPICE PARK
SPICE MODEL of 2SK3872-01SJ (Standard+BDS Model) in SPICE PARK
 
SPICE MODEL of 2SK3872-01L (Professional+BDP Model) in SPICE PARK
SPICE MODEL of 2SK3872-01L (Professional+BDP Model) in SPICE PARKSPICE MODEL of 2SK3872-01L (Professional+BDP Model) in SPICE PARK
SPICE MODEL of 2SK3872-01L (Professional+BDP Model) in SPICE PARK
 
SPICE MODEL of 2SK3872-01L (Standard+BDS Model) in SPICE PARK
SPICE MODEL of 2SK3872-01L (Standard+BDS Model) in SPICE PARKSPICE MODEL of 2SK3872-01L (Standard+BDS Model) in SPICE PARK
SPICE MODEL of 2SK3872-01L (Standard+BDS Model) in SPICE PARK
 
5 l0380r
5 l0380r5 l0380r
5 l0380r
 
Master thesis presentation
Master thesis presentationMaster thesis presentation
Master thesis presentation
 
Vip Er22a
Vip Er22aVip Er22a
Vip Er22a
 
SPICE MODEL of 2SK3872-01S (Professional+BDP Model) in SPICE PARK
SPICE MODEL of 2SK3872-01S (Professional+BDP Model) in SPICE PARKSPICE MODEL of 2SK3872-01S (Professional+BDP Model) in SPICE PARK
SPICE MODEL of 2SK3872-01S (Professional+BDP Model) in SPICE PARK
 
SPICE MODEL of 2SK3869 (Standard+BDS Model) in SPICE PARK
SPICE MODEL of 2SK3869 (Standard+BDS Model) in SPICE PARKSPICE MODEL of 2SK3869 (Standard+BDS Model) in SPICE PARK
SPICE MODEL of 2SK3869 (Standard+BDS Model) in SPICE PARK
 
SPICE MODEL of TPC8203 (Standard+BDS Model) in SPICE PARK
SPICE MODEL of TPC8203 (Standard+BDS Model) in SPICE PARKSPICE MODEL of TPC8203 (Standard+BDS Model) in SPICE PARK
SPICE MODEL of TPC8203 (Standard+BDS Model) in SPICE PARK
 
SPICE MODEL of TPC6104 (Professional+BDP Model) in SPICE PARK
SPICE MODEL of TPC6104 (Professional+BDP Model) in SPICE PARKSPICE MODEL of TPC6104 (Professional+BDP Model) in SPICE PARK
SPICE MODEL of TPC6104 (Professional+BDP Model) in SPICE PARK
 

Último

HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxEsquimalt MFRC
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfPoh-Sun Goh
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfSherif Taha
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentationcamerronhm
 
Interdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptxInterdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptxPooja Bhuva
 
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...pradhanghanshyam7136
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17Celine George
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfagholdier
 
Spellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseSpellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseAnaAcapella
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...Nguyen Thanh Tu Collection
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17Celine George
 
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptxHMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptxmarlenawright1
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.christianmathematics
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and ModificationsMJDuyan
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Jisc
 
REMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptxREMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptxDr. Ravikiran H M Gowda
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.MaryamAhmad92
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsMebane Rash
 
Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsKarakKing
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsTechSoup
 

Último (20)

HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdf
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdf
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentation
 
Interdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptxInterdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptx
 
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
Spellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseSpellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please Practise
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17
 
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptxHMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and Modifications
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)
 
REMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptxREMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptx
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 
Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functions
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 

Embedded System Microcontroller Interactive Course using BASCOM-AVR -Lecture7

  • 1.    ‫ﺍﻟﺘﺠﺎﺭﺏ ﺍﻟﻌﻤﻠﻴﺔ‬     Programming Embedded Systems Microcontroller You Can Practice Microcontroller Programming Easily Now! WALID BALID, Tuesday, December 15, 2009
  • 2.     Exp.18: Interfacing n-Switch to a Single PIN             SW2S426          132 
  • 3. Practical Class 7 Programming Microcontrollers             ADSC Start ADC  Single Config Adc= Single/Free, .Getadc  Prescaler = Auto, Start ADCFree ADCH           Reference = off|Avcc|internal  and ADCL Prescaler  Reference Start Adc   Stop Adc   var = Getadc(channel) channel      Prescaler      50 ~200 KHz   200KHz    2.56VInternal Reference AVCC   Vref  of  f  AVR  AVRmega  10-bit §  0 - VCC §  ±2 LSB § Faculty of Electrical and Electronic Eng. 133 Automatic Control & Automation Dept.
  • 4.     0.5 LSB § 13 – 260 Micro Sec §    15KSPS §  2.56V §  Single, Free §   §   §  50 ~1000 KHz §   §   §  x10 – x200 §  AVR                    R=100Ω, C=100nFRCL=100uH, C=100nFLC              ± 0.3V                                   134 
  • 5. Practical Class 7 Programming Microcontrollers         Idle mode          “Single” ü  “Enable ADC ” ü  “Start ADC ” ü  “Idle ” ü  ü     “Stop ADC ” ü ADC  Faculty of Electrical and Electronic Eng. 135 Automatic Control & Automation Dept.
  • 6.          210=1024  10-bit   AVR         0 – VCC 0 – 1023 = ×        Vin  Vref   = ×    ADC = ( )× ×      V Pos  VNeg  1X, 10X, 200XGAIN  ADC val 0 → 511 ≫ 512 → 1023 ≫        136 
  • 7. Practical Class 7 Programming Microcontrollers   $regfile = "m128def.dat" $crystal = 8000000   '----------------------- Config Lcdpin = Pin , Db4 = Portc.4 , Db5 =  Portc.5 , Db6 = Portc.6 , Db7 = Portc.7 , E = Portc.2 , Rs = Portc.3   Config Lcd = 20 * 4   Config Adc = Single , Prescaler = Auto ,   Reference = Avcc Start Adc '----------------------   Dim W1 As Word , Voltage As Single Dim Sw As String * 1 Const V_ref = 5 '----------------------   Do   Gosub Get_var   Gosub Check_sw Gosub Show_temp Wait 1 Loop '----------------------    Get_var: W1 = Getadc(5) Voltage = W1 * V_ref Voltage = Voltage / 1024 Return '----------------------  Check_sw:   Select Case W1 Case 150 To 250 : Sw = "1" Case 300 To 400 : Sw = "2" Case 550 To 700 : Sw = "3" Case 750 To 850 : Sw = "4" Case Else : Sw = "-" End Select Return '----------------------   Show_temp:   Cls Locate 1 , 1 : Lcd "VAR1= " ; W1 Locate 2 , 1 : Lcd "VOLT= " ; Voltage Locate 3 , 1 : Lcd "Switch NO. " ; Sw Return    Faculty of Electrical and Electronic Eng. 137 Automatic Control & Automation Dept.
  • 8.     Exp.19: Reading Analog Liner Voltage               SW2S424,5                    R107, R100  138 
  • 9. Practical Class 7 Programming Microcontrollers   $regfile = "m128def.dat" $crystal = 8000000   '----------------------- Config Lcdpin = Pin , Db4 = Portc.4 , Db5 =  Portc.5 , Db6 = Portc.6 , Db7 = Portc.7 , E = Portc.2 , Rs = Portc.3   Config Lcd = 20 * 4     Config Adc = Single , Prescaler = Auto , Reference = Avcc   Start Adc '---------------------- Dim W1 As Integer , W2 As Integer ,   Temperature As Integer Dim Voltage1 As Single , Voltage2 As Single Const V_ref = 5 '----------------------     Do Gosub Get_var   Gosub Show_var Wait 1 Loop '---------------------- Get_var:  W1 = Getadc(3) W2 = Getadc(4)   Voltage1 = W1 * V_ref Voltage1 = Voltage1 / 1024 Voltage2 = W2 * V_ref Voltage2 = Voltage2 / 1024 Return '---------------------- Show_var:   Cls   Locate 1 , 1 : Lcd "VAR1= " ; W1 Locate 2 , 1 : Lcd "VAR2= " ; W2 Locate 3 , 1 : Lcd "VOLT1= " ; Voltage1 Locate 3 , 1 : Lcd "VOLT2= " ; Voltage2 Return        Faculty of Electrical and Electronic Eng. 139 Automatic Control & Automation Dept.
  • 10.      Exp.20: Interfacing LDR                SW2S421         CDS  100Ω   350nm ~ 800nm2MΩ = × .  LDRillumination    140 
  • 11. Practical Class 7 Programming Microcontrollers  LUXL 340x103A   LDR Technical Specifications Dark Resistance 1MΩ Resistance @ 10 Lux 10 – 20 KΩ Resistance @ 100 Lux 2 – 4 KΩ Peak Spectral response 540nm Maximum Voltage 150V peak AC or DC Power Dissipation 100mW Operating Temperature -30°C to + 70°C   $regfile = "m128def.dat" $crystal = 8000000   '----------------------- Config Lcdpin = Pin , Db4 = Portc.4 , Db5 =  Portc.5 , Db6 = Portc.6 , Db7 = Portc.7 , E   = Portc.2 , Rs = Portc.3 Config Lcd = 20 * 4     Config Adc = Single , Prescaler = Auto , Reference = Avcc   Start Adc '---------------------- Dim Ldr_r As Single, W1 As Word   Dim Vin As Single Dim Var1 As Single , Var2 As Single Const V_ref = 5 : Const Vcc = 5 Const R_serial = 10000   '----------------------   Do   Gosub Get_adc Gosub Calc_r   Gosub Show_val Wait 1 Loop   '---------------------- Get_adc: W1 = Getadc(0) Return '----------------------   Calc_r: Vin = W1 * V_ref  'LDR R=(Vin.10K)/(Vcc-Vin) Vin = Vin / 1024 Var1 = Vcc - Vin Var2 = Vin * R_serial Ldr_r = Var2 / Var1   Return '----------------------   Show_val: Faculty of Electrical and Electronic Eng. 141 Automatic Control & Automation Dept.
  • 12.     Cls Locate 1 , 1 : Lcd "ADC= " ; W1 Locate 2 , 1 : Lcd "Vin= " ; Vin Locate 3 , 1 : Lcd "LDR= " ; Ldr_r Return Exp.21: Interfacing NTC Resistor  NTC    NTC       SW2S422   Negative Temperature ) NTC           (Coefcient i f   142 
  • 13. Practical Class 7 Programming Microcontrollers                    10K 25°C    = ×  25°C 3450     ° = −          273°K  273°K + 25°C = 298°K   ° = −           Faculty of Electrical and Electronic Eng. 143 Automatic Control & Automation Dept.
  • 14.               $regfile = "m128def.dat" $crystal = 8000000   '-----------------------  Config Lcdpin = Pin , Db4 = Portc.4 , Db5 = Portc.5 , Db6 = Portc.6 , Db7 = Portc.7 , E   = Portc.2 , Rs = Portc.3 Config Lcd = 20 * 4     Config Adc = Single , Prescaler = Auto , Reference = Avcc   Start Adc '---------------------- Dim W1 As Word , Voltage As Single   Dim Temp As Single Dim F1 As Single, Ntc_volt As Single Const V_ref = 5   '---------------------- Do   Gosub Get_temp   Gosub Show_temp Wait 1 Loop '---------------------- Get_temp: W1 = Getadc(1)  Ntc_volt = W1 * V_ref   Ntc_volt = Ntc_volt / 1024  'Beta/Tamp = 4250/298 = 14.2167 F1 = 1024 - W1 F1 = W1 / F1 F1 = Log(f1) F1 = F1 + 14.2617 F1 = 4250 / F1 Temp = F1 - 273 Return '----------------------   Show_temp: Cls   Locate 1 , 1 : Lcd "VAR1= " ; W1 Locate 2 , 1 : Lcd "VOLT= " ; Ntc_volt Locate 3 , 1 : Lcd "TEMP= " ; Temp Return    144 
  • 15. Practical Class 7 Programming Microcontrollers Exp.22: Interfacing LM35  LM35      LM35DZ   -45°C ~ +145°C         SW2S427,8           LM35       12 V   Faculty of Electrical and Electronic Eng. 145 Automatic Control & Automation Dept.
  • 16.     ℃ →     = = =4 × . ×  10mV .  4     $regfile = "m128def.dat" $crystal = 8000000   '----------------------- Config Lcdpin = Pin , Db4 = Portc.4 , Db5 =  Portc.5 , Db6 = Portc.6 , Db7 = Portc.7 , E = Portc.2 , Rs = Portc.3   Config Lcd = 20 * 4   Config Adc = Single , Prescaler = Auto ,   Reference = Internal Start Adc '----------------------   Dim W1 As Integer , W2 As Integer , Temperature As Integer '----------------------   Do   Gosub Get_temp   Gosub Show_temp Wait 1 Loop '----------------------  Get_temp:   W1 = Getadc(6)  ' 4 steps = 1 degree W2 = Getadc(7) Temperature = W1 - W2 Temperature = Temperature / 4 Return '----------------------   Show_temp:   Cls Lcd "Temp= " ; Temperature ; " C" Return       146 
  • 17. Practical Class 7 Programming Microcontrollers Exp.23: Interfacing Pressure Sensor               SW2S423    “Freescale”     MPXAZ6115A         Faculty of Electrical and Electronic Eng. 147 Automatic Control & Automation Dept.
  • 18.     15 ~ 115 kPa(kilopascals)  101.325-kPa 1-atm(atmosphere) Atmosphere = 101,325 * Pascal Atmosphere = 1.013 * bar  15 ~ 115 kPa0.2V ~ 4.8V   = × ( . × − . ) ∓ ( × × 0.009 × ) = . ∓ .      = × ( . × − . )  1.5kPa   = + . . × .   100m    7mbar       310mbar8848m              Pressure-to-altitudeAltimeters  148 
  • 19. . / ∙ ℎ= ∙ 1− Practical Class 7 Programming Microcontrollers . . / Zero altitude pressure = 101325Pa = 1’013.25mbar; (100Pa = 1mbar) Zero altitude temperature = 288.15K = = 287.052 Temperature gradient = 6.5K/1000m ∗ . R is the specifc gas cons tant : i 12km     +/-100m   $regfile = "m128def.dat" $crystal = 8000000   '----------------------- Config Lcdpin = Pin , Db4 = Portc.4 , Db5 =  Portc.5 , Db6 = Portc.6 , Db7 = Portc.7 , E = Portc.2 , Rs = Portc.3   Config Lcd = 20 * 4   Config Adc = Single , Prescaler = Auto ,   Reference = Avcc Start Adc '----------------------   Dim W1 As Word , Voltage As Single , Pressure As Single Const V_ref = 5 '----------------------     Do Gosub Get_temp   Gosub Show_temp Wait 1 Loop '----------------------  Get_temp:  W1 = Getadc(2) Voltage = W1 * V_ref   Voltage = Voltage / 1024 Pressure = Voltage / 0.045 Pressure = Pressure + 10.55 Return   '----------------------   Show_temp: Cls Faculty of Electrical and Electronic Eng. 149 Automatic Control & Automation Dept.
  • 20.     Locate 1 , 1 : Lcd "VAR1= " ; W1 Locate 2 , 1 : Lcd "VOLT= " ; Voltage Locate 3 , 1 : Lcd "PRES= " ; Pressure Return    LM317   1.3V~5VP62R118  LM385LM317  LM385  1.3V:LM385-1.3  2.5V:LM385-2.5 1.1V~5VLM385      150 