Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

How to make a Momentary switch have multiple functions

Status
Not open for further replies.
If anyone can put a .hex
Grateful for your response in advance!
Download MPASM and you can do it yourself.

'635 and '200 v2 HEX files attached. They were assembled using the default radix.
 

Attachments

  • 635v2.HEX
    428 bytes · Views: 246
  • 200v2.HEX
    391 bytes · Views: 272
I understand the little pic.
I tried it with MPLAB IDE v8.88 but we failed to do .hex .
Many thanks a lot for the .hex .

Do I Fuse bit set?

10f200.png12f635.png
 
You would want MCLRE, WDT and CP all off
 
.asm V2 to write the 10f200 :

"'__CONFIG _MCLRE_OFF & _CP_OFF & _WDT_OFF"

I wonder if I'm set up right.
This is picture 1

.asm V2 to write the 12F635 :

"__config _FCMEN_OFF&_IESO_OFF&_MCLRE_OFF&_WDT_OFF&_INTRC_OSC_NOCLKOUT"

I wonder if I'm set up right.
This is picture 2

Grateful for your response in advance!
 
Hello fellow electronics, would it be possible to modify Mike's code to add an acc relay? if you press one time acc comes on if you press second time acc/on is turned on.
I would be very thankful if someone could help me out :)
 
Status
Not open for further replies.

New Articles From Microcontroller Tips

Back
Top