Hi...
I'm new here... My name is Normand Martel, i live in Montreal, Québec and have been made a lot of assembler and C programming in the past.
My headache has started with the PIC12F683. (I've made a lot of programming on the 18 pinners without any hassle)
I've taken a very well functioning assembler code from a PIC16F648 to adapt it to the 12F683 and everything has crashed!
I've written a (simpler) code to let you see my problem....
Please see "test_683.txt" attached file to see my code.
; Simple test program to try to get around my (CENSORED) GPIO/int problem.
; This simple program generates low frequency squarewavec on pin 7
; My problem: I CANNOT DO ANYTHING WITH THE GP2/INT INPUT!!!
; I've made A LOT of assembler on PIC16F84 and 16F628 without any
; hassles! But, i do not know what's around the 12F683, but nothing works!!!!
; This sample program is simply a programmable delay (with 8 different delay length values
; depending of the "tonalite" variable turning round and round,
; toggling GP0 everytime. also, pin 3 (GP4) is supposed to follow pin 5 (GP2)
;The "tonalite" variable is SUPPOSED to increment at each interruption (GP2/INT)
I'm new here... My name is Normand Martel, i live in Montreal, Québec and have been made a lot of assembler and C programming in the past.
My headache has started with the PIC12F683. (I've made a lot of programming on the 18 pinners without any hassle)
I've taken a very well functioning assembler code from a PIC16F648 to adapt it to the 12F683 and everything has crashed!
I've written a (simpler) code to let you see my problem....
Please see "test_683.txt" attached file to see my code.
; Simple test program to try to get around my (CENSORED) GPIO/int problem.
; This simple program generates low frequency squarewavec on pin 7
; My problem: I CANNOT DO ANYTHING WITH THE GP2/INT INPUT!!!
; I've made A LOT of assembler on PIC16F84 and 16F628 without any
; hassles! But, i do not know what's around the 12F683, but nothing works!!!!
; This sample program is simply a programmable delay (with 8 different delay length values
; depending of the "tonalite" variable turning round and round,
; toggling GP0 everytime. also, pin 3 (GP4) is supposed to follow pin 5 (GP2)
;The "tonalite" variable is SUPPOSED to increment at each interruption (GP2/INT)
Attachments
-
18.1 KB Views: 40