??? 01/20/07 14:13 Read: times |
#131161 - Schematic Added - Am I asking for too much? Responding to: ???'s previous message |
Thanks once again to everyone for your help. Have put up the schematic on:
http://www.8052.com/users/rishiraj P3.0 and P3.1 are connetcet to push switches labelled "+" and "-". Pressing them increments (or decrements) the 2-digit display. The logic is that at a low display the zero-crossing code should output a pulse that causes the triac to switch on for a small duration thus causing the lamp (connected in series to it) to glow faintly. Conversely a high digit on the display causes the triac to be switched on for a longer duration for each 1/2 cycle. The display works fine but the moment the input is applied to P3.3 the display stops functioning. It seems that the repeated interrupts do not allso the uC to execute the display sub-routines (or the switch polling sub-routines ) . Does this mean that I cannot perform all three functions ( ZCD, display and polling) with one uC ? I can delegate the task of ZCD to an external ckt. but I want the controller to do everything. Am I asking for too much ? Rishi |