SlideShare a Scribd company logo
1 of 20
Download to read 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                     

More Related Content

What's hot

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
 

What's hot (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]
 

Viewers also liked

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
 

Viewers also liked (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
 

Similar to 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
 

Similar to 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
 

Recently uploaded

factors influencing drug absorption-final-2.pptx
factors influencing drug absorption-final-2.pptxfactors influencing drug absorption-final-2.pptx
factors influencing drug absorption-final-2.pptxSanjay Shekar
 
UNIT – IV_PCI Complaints: Complaints and evaluation of complaints, Handling o...
UNIT – IV_PCI Complaints: Complaints and evaluation of complaints, Handling o...UNIT – IV_PCI Complaints: Complaints and evaluation of complaints, Handling o...
UNIT – IV_PCI Complaints: Complaints and evaluation of complaints, Handling o...Sayali Powar
 
Telling Your Story_ Simple Steps to Build Your Nonprofit's Brand Webinar.pdf
Telling Your Story_ Simple Steps to Build Your Nonprofit's Brand Webinar.pdfTelling Your Story_ Simple Steps to Build Your Nonprofit's Brand Webinar.pdf
Telling Your Story_ Simple Steps to Build Your Nonprofit's Brand Webinar.pdfTechSoup
 
slides CapTechTalks Webinar May 2024 Alexander Perry.pptx
slides CapTechTalks Webinar May 2024 Alexander Perry.pptxslides CapTechTalks Webinar May 2024 Alexander Perry.pptx
slides CapTechTalks Webinar May 2024 Alexander Perry.pptxCapitolTechU
 
Basic Civil Engg Notes_Chapter-6_Environment Pollution & Engineering
Basic Civil Engg Notes_Chapter-6_Environment Pollution & EngineeringBasic Civil Engg Notes_Chapter-6_Environment Pollution & Engineering
Basic Civil Engg Notes_Chapter-6_Environment Pollution & EngineeringDenish Jangid
 
Basic Civil Engineering notes on Transportation Engineering, Modes of Transpo...
Basic Civil Engineering notes on Transportation Engineering, Modes of Transpo...Basic Civil Engineering notes on Transportation Engineering, Modes of Transpo...
Basic Civil Engineering notes on Transportation Engineering, Modes of Transpo...Denish Jangid
 
Pragya Champions Chalice 2024 Prelims & Finals Q/A set, General Quiz
Pragya Champions Chalice 2024 Prelims & Finals Q/A set, General QuizPragya Champions Chalice 2024 Prelims & Finals Q/A set, General Quiz
Pragya Champions Chalice 2024 Prelims & Finals Q/A set, General QuizPragya - UEM Kolkata Quiz Club
 
Mbaye_Astou.Education Civica_Human Rights.pptx
Mbaye_Astou.Education Civica_Human Rights.pptxMbaye_Astou.Education Civica_Human Rights.pptx
Mbaye_Astou.Education Civica_Human Rights.pptxnuriaiuzzolino1
 
Behavioral-sciences-dr-mowadat rana (1).pdf
Behavioral-sciences-dr-mowadat rana (1).pdfBehavioral-sciences-dr-mowadat rana (1).pdf
Behavioral-sciences-dr-mowadat rana (1).pdfaedhbteg
 
Navigating the Misinformation Minefield: The Role of Higher Education in the ...
Navigating the Misinformation Minefield: The Role of Higher Education in the ...Navigating the Misinformation Minefield: The Role of Higher Education in the ...
Navigating the Misinformation Minefield: The Role of Higher Education in the ...Mark Carrigan
 
2024_Student Session 2_ Set Plan Preparation.pptx
2024_Student Session 2_ Set Plan Preparation.pptx2024_Student Session 2_ Set Plan Preparation.pptx
2024_Student Session 2_ Set Plan Preparation.pptxmansk2
 
Capitol Tech Univ Doctoral Presentation -May 2024
Capitol Tech Univ Doctoral Presentation -May 2024Capitol Tech Univ Doctoral Presentation -May 2024
Capitol Tech Univ Doctoral Presentation -May 2024CapitolTechU
 
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT VẬT LÝ 2024 - TỪ CÁC TRƯỜNG, TRƯ...
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT VẬT LÝ 2024 - TỪ CÁC TRƯỜNG, TRƯ...TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT VẬT LÝ 2024 - TỪ CÁC TRƯỜNG, TRƯ...
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT VẬT LÝ 2024 - TỪ CÁC TRƯỜNG, TRƯ...Nguyen Thanh Tu Collection
 
Danh sách HSG Bộ môn cấp trường - Cấp THPT.pdf
Danh sách HSG Bộ môn cấp trường - Cấp THPT.pdfDanh sách HSG Bộ môn cấp trường - Cấp THPT.pdf
Danh sách HSG Bộ môn cấp trường - Cấp THPT.pdfQucHHunhnh
 
會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文
會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文
會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文中 央社
 
The basics of sentences session 4pptx.pptx
The basics of sentences session 4pptx.pptxThe basics of sentences session 4pptx.pptx
The basics of sentences session 4pptx.pptxheathfieldcps1
 
The Benefits and Challenges of Open Educational Resources
The Benefits and Challenges of Open Educational ResourcesThe Benefits and Challenges of Open Educational Resources
The Benefits and Challenges of Open Educational Resourcesaileywriter
 
Essential Safety precautions during monsoon season
Essential Safety precautions during monsoon seasonEssential Safety precautions during monsoon season
Essential Safety precautions during monsoon seasonMayur Khatri
 

Recently uploaded (20)

factors influencing drug absorption-final-2.pptx
factors influencing drug absorption-final-2.pptxfactors influencing drug absorption-final-2.pptx
factors influencing drug absorption-final-2.pptx
 
UNIT – IV_PCI Complaints: Complaints and evaluation of complaints, Handling o...
UNIT – IV_PCI Complaints: Complaints and evaluation of complaints, Handling o...UNIT – IV_PCI Complaints: Complaints and evaluation of complaints, Handling o...
UNIT – IV_PCI Complaints: Complaints and evaluation of complaints, Handling o...
 
Telling Your Story_ Simple Steps to Build Your Nonprofit's Brand Webinar.pdf
Telling Your Story_ Simple Steps to Build Your Nonprofit's Brand Webinar.pdfTelling Your Story_ Simple Steps to Build Your Nonprofit's Brand Webinar.pdf
Telling Your Story_ Simple Steps to Build Your Nonprofit's Brand Webinar.pdf
 
slides CapTechTalks Webinar May 2024 Alexander Perry.pptx
slides CapTechTalks Webinar May 2024 Alexander Perry.pptxslides CapTechTalks Webinar May 2024 Alexander Perry.pptx
slides CapTechTalks Webinar May 2024 Alexander Perry.pptx
 
Basic Civil Engg Notes_Chapter-6_Environment Pollution & Engineering
Basic Civil Engg Notes_Chapter-6_Environment Pollution & EngineeringBasic Civil Engg Notes_Chapter-6_Environment Pollution & Engineering
Basic Civil Engg Notes_Chapter-6_Environment Pollution & Engineering
 
Basic Civil Engineering notes on Transportation Engineering, Modes of Transpo...
Basic Civil Engineering notes on Transportation Engineering, Modes of Transpo...Basic Civil Engineering notes on Transportation Engineering, Modes of Transpo...
Basic Civil Engineering notes on Transportation Engineering, Modes of Transpo...
 
Pragya Champions Chalice 2024 Prelims & Finals Q/A set, General Quiz
Pragya Champions Chalice 2024 Prelims & Finals Q/A set, General QuizPragya Champions Chalice 2024 Prelims & Finals Q/A set, General Quiz
Pragya Champions Chalice 2024 Prelims & Finals Q/A set, General Quiz
 
Mbaye_Astou.Education Civica_Human Rights.pptx
Mbaye_Astou.Education Civica_Human Rights.pptxMbaye_Astou.Education Civica_Human Rights.pptx
Mbaye_Astou.Education Civica_Human Rights.pptx
 
Behavioral-sciences-dr-mowadat rana (1).pdf
Behavioral-sciences-dr-mowadat rana (1).pdfBehavioral-sciences-dr-mowadat rana (1).pdf
Behavioral-sciences-dr-mowadat rana (1).pdf
 
Post Exam Fun(da) Intra UEM General Quiz - Finals.pdf
Post Exam Fun(da) Intra UEM General Quiz - Finals.pdfPost Exam Fun(da) Intra UEM General Quiz - Finals.pdf
Post Exam Fun(da) Intra UEM General Quiz - Finals.pdf
 
Navigating the Misinformation Minefield: The Role of Higher Education in the ...
Navigating the Misinformation Minefield: The Role of Higher Education in the ...Navigating the Misinformation Minefield: The Role of Higher Education in the ...
Navigating the Misinformation Minefield: The Role of Higher Education in the ...
 
2024_Student Session 2_ Set Plan Preparation.pptx
2024_Student Session 2_ Set Plan Preparation.pptx2024_Student Session 2_ Set Plan Preparation.pptx
2024_Student Session 2_ Set Plan Preparation.pptx
 
Capitol Tech Univ Doctoral Presentation -May 2024
Capitol Tech Univ Doctoral Presentation -May 2024Capitol Tech Univ Doctoral Presentation -May 2024
Capitol Tech Univ Doctoral Presentation -May 2024
 
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT VẬT LÝ 2024 - TỪ CÁC TRƯỜNG, TRƯ...
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT VẬT LÝ 2024 - TỪ CÁC TRƯỜNG, TRƯ...TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT VẬT LÝ 2024 - TỪ CÁC TRƯỜNG, TRƯ...
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT VẬT LÝ 2024 - TỪ CÁC TRƯỜNG, TRƯ...
 
Danh sách HSG Bộ môn cấp trường - Cấp THPT.pdf
Danh sách HSG Bộ môn cấp trường - Cấp THPT.pdfDanh sách HSG Bộ môn cấp trường - Cấp THPT.pdf
Danh sách HSG Bộ môn cấp trường - Cấp THPT.pdf
 
Operations Management - Book1.p - Dr. Abdulfatah A. Salem
Operations Management - Book1.p  - Dr. Abdulfatah A. SalemOperations Management - Book1.p  - Dr. Abdulfatah A. Salem
Operations Management - Book1.p - Dr. Abdulfatah A. Salem
 
會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文
會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文
會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文
 
The basics of sentences session 4pptx.pptx
The basics of sentences session 4pptx.pptxThe basics of sentences session 4pptx.pptx
The basics of sentences session 4pptx.pptx
 
The Benefits and Challenges of Open Educational Resources
The Benefits and Challenges of Open Educational ResourcesThe Benefits and Challenges of Open Educational Resources
The Benefits and Challenges of Open Educational Resources
 
Essential Safety precautions during monsoon season
Essential Safety precautions during monsoon seasonEssential Safety precautions during monsoon season
Essential Safety precautions during monsoon season
 

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 