Author |
Message |
Topic: 16F628A, constants used in setup_comparator() |
ghiamkiii
Replies: 5
Views: 12837
|
Forum: General CCS C Discussion Posted: Fri Nov 03, 2017 4:50 pm Subject: 16F628A, constants used in setup_comparator() |
Solved !
Now it works |
Topic: 16F628A, constants used in setup_comparator() |
ghiamkiii
Replies: 5
Views: 12837
|
Forum: General CCS C Discussion Posted: Fri Nov 03, 2017 3:50 pm Subject: 16F628A, constants used in setup_comparator() |
When i use setup_comparator(A0_A3_A1_A2) with A0 and A1 as -input,
on A3 and A2 as +input with an external reference voltage,
and when i vary the voltage of A0 and A1
I get no response on C1OUT an ... |
Topic: 16F628A, constants used in setup_comparator() |
ghiamkiii
Replies: 5
Views: 12837
|
Forum: General CCS C Discussion Posted: Wed Nov 01, 2017 3:31 pm Subject: 16F628A, constants used in setup_comparator() |
In header 16F628A.H there are constants for setup_comparator();
Example:
#define A0_VR_A2_VR 0x3ff02
#define A0_A2_A1_A2_OUT_ON_A3_A4 0x7e706
What does the hex code 0x3ff02 mean, etc
I kn ... |
|