Hi Kunguz,
In your code, which you said works, how did you get "HIGH PORTA" or "LOW PORTA" work?
?
-------------------
Hi Kunguz,
In your code, which you said works, how did you get "HIGH PORTA" or "LOW PORTA" work?
?
-------------------
"If the Earth were a single state, Istanbul would be its capital." Napoleon Bonaparte
May be it's about my IDE ; I am using PROTON SE 1.1.2.8 ,And you can find the working circuit in the attachment with assembly and PICBASIC codes in it.
Certainely not an IDE problemThere's few things in the world want to stay away of. Proton is one of these
![]()
Last edited by mister_e; - 30th October 2006 at 03:35.
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
DEFINE LOADER_USED 1
INCLUDE "modedefs.bas"
DEFINE HSER_BAUD 9600
DEFINE HSER_SPBRG 25 'Gebruik deze twee defines 25
dEFINE HSER_TXSTA 24h 'voor HSER met 9600 Baud
OPTION_REG = $7f ' Enable PORTB pullups
ADCON1 = 7 ' Make PORTA and PORTE digital
on interrupt goto myint
INTCON = $88
pause 50
TRISB = %11110000
led var portb.0
start:
pause 5
goto start
'***Start interruptroutine***
disable
myint:
high led
pause 500
low led
INTCON.0=0 'Clear interruptflag
resume
enable
end
Hi paulvits,
As you can see Kunguz is all fine. He did not die.
What is your question?
-----------------------------
"If the Earth were a single state, Istanbul would be its capital." Napoleon Bonaparte
Hi Paulvits ; first of all never use pause or a delay in interrupt ; I don't know why but it makes the chip return from an interrupt with a long time. Really really long. And before intcon.0 = 0 use this line; "MOVF PORTB, W" And let the magic happen .Remove PORTB and write down your interrupt port that's all ,Thanks steven and others I learned this with their helps
They said the same thing about planes in the early days of flight. Sometimes progress takes a while to catch on.Originally Posted by mister_e
![]()
---> picnaut
Hey Picnaut
Why i had this feeling you couldn't resist to add your spices?
Are you saying we can fly? Really? Wohooo i missed it?
Is that also true that a man walked on the moon?
I'm to old to wait 'till it's going to be at least good... if the day come.Sometimes progress takes a while to catch on.
There's a far better tool (not toy) comming up soon. Too bad only for 18Fs... 'till now. Even in pre-release it's already 1E10,000 : 1 better than this Programmer Disaster Software.
Happy for you that you finnaly get your multi I2CBUS. 2 year later but you have it now. That's true, progress takes a while to catch on.
Last edited by mister_e; - 1st November 2006 at 05:08.
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
Hi Mister E,
Are you talking about Swordfish?
If so, it does look cool.
Unfortunately, I've begun to realize that, as a rule, virtually no one in industry takes Basic languages seriously - procedural or not.
So, unless you are purely a hobbyist or are planning on working 100% for yourself (and never for "the man"), a serious embedded engineer needs to learn C. It's sad, but true. Employers look for C (primarily) and assembly (is a plus).
It's frustrating but it's a reality, at least in North America.
I defy anyone to find one company in the States or Canada that's looking for basic programmers! I'll bet that there aren't any.
Anyway, I don't mean to rant, but I've been frustrated by this lately.
So, I've bought some C books and dug my old notes out.
Basic has served me well (PBP and PDS) and has gotten me very comfortable with PICs, but it's on to the next level.
Cheers!
---> picnaut
C is a totally different approach. All language will do the job.
I also use C is some case. But 95% of what i do use BASIC (structured or not) + asm.
One reason why C is comming more and more popular on some forums is because it's too easy to find some crack/patch to remove the 30 Days Trial limitations. You already know, most serious C compiler pricing are much higher than Basic. You'll never find something really good covering ALL (most) PIC familly under 1,000$
I have nothing against C. It's a really nice and powerfull language. That what i learned at university... when i was young. C for programming is probably the same a Snap-On tool for mechanics... kind of
BTW, everybody knows that whatever you use, the guy/girl back to the keyboard make difference.
You can change your car transmission with a wise grip if you want
Good luck and don't give up. It really worth to know more programming language.
PS: I would never be a compiler developper... Microchip release too much different PIC model and familly /day/month/years. You have to be a huge team and have all of those PIC to double check what you do. Tedious job.
Last edited by mister_e; - 1st November 2006 at 05:48.
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
Bookmarks