Page 792 - Mechatronics with Experiments
P. 792

to
                                                                                               connected



                                                                                               are
                                                                                 (Current limiting  resistors)  inputs
                                                                  1000 Ω
                                                                            1000 Ω
                                                         1000 Ω
                                               1000 Ω                                          Switch
                                                                                               outputs.


                                                                                               LED
                                                                                               ON/OFF


                                                                                               turn  and
                                                         Microcontroller:  PIC 18F452       or  PIC 18F4331        switches  (GND)).  OFF




                                                                                               input  =  3  Pin

                                                                                               of  OFF ,
                                                                                               status  =


                                                                                               read  SW1
                                                                                               I/O:  (i.e.,
                                                                                               digital  resistors

                                                                                               for
                                      Input switches                               100 kΩ  (pull-down)  resistors  diagram  Circuit  pull-down  with






                                                                                               11.22:  microcontroller

                                      DC supply                                                FIGURE  the










                              778
   787   788   789   790   791   792   793   794   795   796   797