Check PIC Chip Input Switches State

  • Thread starter Thread starter jyothika
  • Start date Start date
  • Tags Tags
    Instruction
Click For Summary
SUMMARY

The discussion centers on detecting state changes in input switches connected to a PIC microcontroller. Participants confirm that a single instruction is insufficient for this task, suggesting the use of multiple instructions for accurate state detection. The XOR operation is mentioned as a potential method for determining changes in switch states. Ultimately, a combination of instructions is necessary to effectively monitor switch inputs on PIC chips.

PREREQUISITES
  • Understanding of PIC microcontroller architecture
  • Familiarity with digital logic operations, specifically XOR
  • Knowledge of assembly language programming for PIC
  • Experience with input/output (I/O) handling in embedded systems
NEXT STEPS
  • Research PIC assembly language instructions for input handling
  • Learn about debouncing techniques for switch inputs
  • Explore state machine design for managing input states
  • Investigate interrupt handling in PIC microcontrollers for switch state changes
USEFUL FOR

Embedded systems developers, hobbyists working with PIC microcontrollers, and anyone interested in implementing switch input detection in their projects.

jyothika
Messages
5
Reaction score
0
when switches are connected to the inputs of a PIC chip and if we want to see whether any of the switches have changed state. What single instruction can be used ?
 
Physics news on Phys.org
I think you will have to use more than one instruction.
 
Xor?
 

Similar threads

  • · Replies 13 ·
Replies
13
Views
3K
  • · Replies 7 ·
Replies
7
Views
3K
  • · Replies 15 ·
Replies
15
Views
3K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 2 ·
Replies
2
Views
1K
  • · Replies 15 ·
Replies
15
Views
2K
  • · Replies 22 ·
Replies
22
Views
5K
Replies
20
Views
4K
Replies
34
Views
4K
  • · Replies 4 ·
Replies
4
Views
2K