EngineersGarage

  • Engineers Garage Main Site
  • Visit our active EE Forums
    • EDABoard.com
    • Electro-Tech-Online
  • Projects & Tutorials
    • Circuits
    • Electronic Projects
    • Tutorials
    • Components
  • Digi-Key Store
    • Cables, Wires
    • Connectors, Interconnect
    • Discrete
    • Electromechanical
    • Embedded Computers
    • Enclosures, Hardware, Office
    • Integrated Circuits (ICs)
    • Isolators
    • LED/Optoelectronics
    • Passive
    • Power, Circuit Protection
    • Programmers
    • RF, Wireless
    • Semiconductors
    • Sensors, Transducers
    • Test Products
    • Tools
  • Advertise
You are here: Home / Replies / algo for fastest finger first project

algo for fastest finger first project

|

Projects › Projects › Fastest finger first project › algo for fastest finger first project

February 7, 2011 at 6:47 am #5443
dagakshay
Participant

 here i an writing the algo which might help you out…

*the switches are connected to a port of microcontroller(lets say PORTA)..

*the port A is externally conncted to the pullup array…

* as soon you press any key that particluar pin of portA goes low

 

code algo:

1) while(PORT A = = oxff);

2) if (PINA.0 = = 0)   output user1

 elseif (PINA.1 = = 0)   output user2

 elseif (PINA.2 = = 0)   output user3

 elseif (PINA.3 = = 0)   output user4

 elseif (PINA.4 = = 0)   output user5

 elseif (PINA.5 = = 0)   output user6

 elseif (PINA.6 = = 0)   output user7

 elseif (PINA.7 = = 0)   output user8

else goto step(1);

3) goto step 1;

 

 

 

 

RSS Recent Posts

  • AI algorithm for bots April 17, 2026
  • SDCC Array Access In Timer 0 Interrupt Handler April 16, 2026
  • EasyEda program has a major bug April 16, 2026
  • ANOTHER OLD PROJECT REDO April 16, 2026
  • How to set the OSCAL in a PIC 12F675 April 16, 2026

Stay Up To Date

Newsletter Signup
EngineersGarage

Copyright © 2026 WTWH Media LLC. All Rights Reserved. The material on this site may not be reproduced, distributed, transmitted, cached or otherwise used, except with the prior written permission of WTWH Media
Privacy Policy | Advertising | About Us

Search Engineers Garage

  • Engineers Garage Main Site
  • Visit our active EE Forums
    • EDABoard.com
    • Electro-Tech-Online
  • Projects & Tutorials
    • Circuits
    • Electronic Projects
    • Tutorials
    • Components
  • Digi-Key Store
    • Cables, Wires
    • Connectors, Interconnect
    • Discrete
    • Electromechanical
    • Embedded Computers
    • Enclosures, Hardware, Office
    • Integrated Circuits (ICs)
    • Isolators
    • LED/Optoelectronics
    • Passive
    • Power, Circuit Protection
    • Programmers
    • RF, Wireless
    • Semiconductors
    • Sensors, Transducers
    • Test Products
    • Tools
  • Advertise