• Port Pin toggle
    I wrote a code for to toggle the port that is given below #include<reg51.h> sbit CLOCK = P0^2; void main() { while(1) { CLOCK = CLOCK^1; } } its not toggling in the IDE please...
  • Port Pin toggle
    I wrote a code for to toggle the port that is given below #include<reg51.h> sbit CLOCK = P0^2; void main() { while(1) { CLOCK = CLOCK^1; } } its not toggling in the IDE please...
  • Problem toggling port pin inside ISR
    I am using one of the 8051 external capture ports to generate an interrupt. My code enters and returns from the ISR just fine until I add a line to toggle an unused external port pin. For some reason...
  • Problem toggling port pin inside ISR
    I am using one of the 8051 external capture ports to generate an interrupt. My code enters and returns from the ISR just fine until I add a line to toggle an unused external port pin. For some reason...
  • toggling port pins through an element in a structure
    Here is what I am trying to do: sbit PORT_1_0 = P1^0; void main () { PORT_1_0 = 1; while(1) { PORT_1_0 =~ PORT_1_0; } } Now this is as simple as it gets. The question is, is it possible...