I got an int value from 0 to 255 and I want to convert that value to hex or binary so i can use it into an 8 bit register(PIC18F uC).How can i do this conversion?I tried to use IntToHex function from Conversion Library but the output of this function is a char value, and from here i got stuck.I'm using mikroc for pic.Where should I start?Thanks!
INTCON.B1 is the INT interrupt flag (intcon reg bit 1)
the ISR checks to see if the flag is set
if it is then the variable hour1 is incremented by 1 and the INT flag is cleared
if the flag is not set it does nothing
you have provided nearly no info at all regards avr chip or even what ide you are using
at this stage speculation is seemingly pointless , your last chance from me
lets pretend a mega328 and input on port d.3
in setup
"attachinterrupt()" is an Arduino specific function that in turn relies on things specific to the AVR Micocontroller, AND the specific C compiler and library environment used on the Arduino (avr-gcc, avr-libc)
Interrupt handling is one of those things that can change drastically from one C compiler to another, even without changing the chip (or, from one version of a specific compiler to another.) It's annoying, and you have to look up how it is supposed to be done in your specific environment, for your specific chip.
is better or just leave it out
I hope you did not pay for mikroc ,because I think you have a long long way to go before getting any value from it .
at least now I know what ide you have but hardware ?? , incomplete code snippets . seems a complete waste of time.
you cannot expect much help from an arduino forum for a foreign ide , mikroc have a forum or try an avr forum