Capacitive sensing from PCBHeaven .asm file conversion

For questions and comments on programming in general. And for any items that don't fit into the forums below.

Moderators: Benj, Mods

Post Reply
opieflus
Posts: 7
Joined: Sun Dec 16, 2012 5:31 am
Been thanked: 6 times

Capacitive sensing from PCBHeaven .asm file conversion

Post by opieflus »

I have started converting the .asm file from PCBHeaven that has 10 (I think) capacitive sensing channels on it for the 16f1937 pic chip. The Flowcode file is in the beginning stages of conversion, but if anyone wants to take a go of it and continue alongside my efforts here it is. Maybe someone can get it working faster than I can. The file is from a template I was working on, so any strange macros you may see are from that. I do not yet know how to delete macros all the way from the file. The file is Flowcode version 5. The .asm file works when loaded onto the chip, so no problems there. I am a Flowcode, c, and assembly amateur so please ignore any obvious mistakes you see.
Attachments
cap sense.fcf
(29.11 KiB) Downloaded 289 times

jgu1
Posts: 1333
Joined: Tue Oct 06, 2009 9:39 am
Has thanked: 1135 times
Been thanked: 299 times

Re: Capacitive sensing from PCBHeaven .asm file conversion

Post by jgu1 »

Hi! :D
I have previously asked if anyone could do this. But in FC and without C. I would love to have helped, but as I said, I can´t program in C. I understand your project is not finished. Enamul has also promised in another thread, that you've probably seen and try to make an effort without C. I like this capasitive sensing, and I will follow the thread.

Thank you.

Jorgen

opieflus
Posts: 7
Joined: Sun Dec 16, 2012 5:31 am
Been thanked: 6 times

Re: Capacitive sensing from PCBHeaven .asm file conversion

Post by opieflus »

Ok, so I am tired of working on this project for a little while. Here is the Flowcode file with the original file from pcbheaven.com included in the comments at the top of the file. This program is NOT working correctly, but the interrupt does work. For some reason it gets stuck at a few points and I have no idea why. If someone else can figure it out, please do so and post your results.

Good luck!
Attachments
cap sense.fcf
(49.4 KiB) Downloaded 270 times

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: Capacitive sensing from PCBHeaven .asm file conversion

Post by Benj »

Hello,

I have posted a cap touch program here which is working very reliably.

http://www.matrixmultimedia.com/mmforum ... 46&t=11669

Post Reply