I want to start by saying thanks to Bill/blueroomelectronics. I may have come across as an angry hater in one thread here when I was basically just concerned as it had been a few weeks and my Junebug hadn't arrived - I was having a lot of issues with buying/selling at the time which didn't help.
I received it a while ago, and yesterday I finally had the time to put it together - I'd been saving it for something to do in all my time off now that I've finished GCSEs (for around a month..)
My next task, was obviously to get something working on it.
I've used the version of BASIC in Circuit Wizard before, to program CW's rebranded "Genie" chips (they're PICs).
I also kind of understand Assembly - or the basics of it. And I was all set to use it for my first LED blinker program - when I ran into my first brick wall:
I can't find a register file map for the 18F1x20 anywhere. Not even in the datasheet.
So how do I know the addresses of STATUS, PORTA, TRISB etc.? How do I know when to switch bank if there's no mention of which bank anything's in in the datasheet?
After getting angry with that for a few hours (and thinking that the 3rd LED coming on was an achievement of something, rather than marking activity or whatever) I switched to looking at C.
With C, I thought, I wouldn't need to know the addresses, as it's all stored in another file. I couldn't find that file - MPLAB hadn't installed it.
Not wanting to uninstall and reinstall MPLAB (and not liking C anyway), I hti another brick wall.
I then downloaded Swordfish BASIC.
I'm now looking at a (very very slightly) modified version of Bill's LED chaser sequence.
So I'm glad that worked out. But I'm left with several questions.
1) Where can I find out th addresses of registers such as PORTA, TRISA on the 18F1x20?
2) Where can I find out what's on which bank on the 18F1x20?
3) Should I use Swordfish, Assembly, or C? Any will have a learning curve - so I need to look to what will be most helpful as I progress really.
4) A good tutorial for using <answer from 3> on the Junebug?
5) Is there a list somewhere of which pin on the 18F1320 on the Junebug is connected to which LED? Only the inputs (switches, IR1, pots etc.) seem to be labelled on the board.
Thanks in advance for any help!
I received it a while ago, and yesterday I finally had the time to put it together - I'd been saving it for something to do in all my time off now that I've finished GCSEs (for around a month..)
My next task, was obviously to get something working on it.
I've used the version of BASIC in Circuit Wizard before, to program CW's rebranded "Genie" chips (they're PICs).
I also kind of understand Assembly - or the basics of it. And I was all set to use it for my first LED blinker program - when I ran into my first brick wall:
I can't find a register file map for the 18F1x20 anywhere. Not even in the datasheet.
So how do I know the addresses of STATUS, PORTA, TRISB etc.? How do I know when to switch bank if there's no mention of which bank anything's in in the datasheet?
After getting angry with that for a few hours (and thinking that the 3rd LED coming on was an achievement of something, rather than marking activity or whatever) I switched to looking at C.
With C, I thought, I wouldn't need to know the addresses, as it's all stored in another file. I couldn't find that file - MPLAB hadn't installed it.
Not wanting to uninstall and reinstall MPLAB (and not liking C anyway), I hti another brick wall.
I then downloaded Swordfish BASIC.
I'm now looking at a (very very slightly) modified version of Bill's LED chaser sequence.
So I'm glad that worked out. But I'm left with several questions.
1) Where can I find out th addresses of registers such as PORTA, TRISA on the 18F1x20?
2) Where can I find out what's on which bank on the 18F1x20?
3) Should I use Swordfish, Assembly, or C? Any will have a learning curve - so I need to look to what will be most helpful as I progress really.
4) A good tutorial for using <answer from 3> on the Junebug?
5) Is there a list somewhere of which pin on the 18F1320 on the Junebug is connected to which LED? Only the inputs (switches, IR1, pots etc.) seem to be labelled on the board.
Thanks in advance for any help!