Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Categories > Micro Controllers


Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc.

Reply
 
Tools
Old 20th January 2009, 02:23 PM   #61
Default

Should you not be able to map out a vector address for what ever you need? If its simply made for vector 4 then why have some many registers to set?

So all you have to do it alter:

VICVectAddr4 .... IRQ_Routine() address
VICVectCntl4 .... #4 aka 0x0000 0010 (for Timer0)
VICIntEnable .... Bit 4 aka 0x0000 0010 (for Timer0)
VICIntSelect .... 0x00 to set it as IRQ (but not needed since its default)

to configure the interrupt?

Last edited by AtomSoft; 20th January 2009 at 02:42 PM.
AtomSoft is offline  
Old 20th January 2009, 03:33 PM   #62
Default

Quote:
Originally Posted by AtomSoft View Post
Should you not be able to map out a vector address for what ever you need? If its simply made for vector 4 then why have some many registers to set?

So all you have to do it alter:

VICVectAddr4 .... IRQ_Routine() address
VICVectCntl4 .... #4 aka 0x0000 0010 (for Timer0)
VICIntEnable .... Bit 4 aka 0x0000 0010 (for Timer0)
VICIntSelect .... 0x00 to set it as IRQ (but not needed since its default)

to configure the interrupt?
Yes, you can put whichever interrupt in whichever vector interrupt slot you want. Put what you need higher priority in lower numbered slots. There's tons of flexibility in the ARMs.

Got PWM and A/D going last night. Both are pretty easy to work with. Did RTC (less interrupts) last week. Ultra easy to use. Now I can add interrupts and really make it do something.
__________________
=========================
Futz's Microcontrollers & Robotics
=========================

Last edited by futz; 20th January 2009 at 03:35 PM.
futz is offline  
Old 20th January 2009, 03:46 PM   #63
Default

Awsome to hear futz. Good job!

I should be ordering mines today or early tomorrow. The issue i have is Sparkfun doesnt have that USB-TINY thing in stock. So i have to get more money for the

"JTAG USB OCD Programmer/Debugger for ARM processors"
SparkFun Electronics - JTAG USB OCD Programmer/Debugger for ARM processors

Just about a $20 difference but with that one i can supply the board power:

"5V 9V and 12VDC @ 300mA" which is pretty cool. Even tho i will be sure to get a 6v supply from radio shack . They have a sale i think its only $3-$4. I also have a few 6v/1000mAh RC batteries and 2 chargers for them so im good when it comes to power supply but still a excellent feature.

So all i have to do is wait for money to poor in lol Ill go visit a few people to see if i can service any PCs or install some breakers in a apartment. You know some here still have fuses I cant live without my breaker box. When fuses blow so does your wallet at least a breaker is resetable

EDIT: also adds:
"virtual RS232 port to your computer with all modem signals like: DTR, DSR, DCD, RTS, CTS, Rx, Tx"

Last edited by AtomSoft; 20th January 2009 at 03:47 PM.
AtomSoft is offline  
Old 20th January 2009, 03:48 PM   #64
Default

Quote:
Originally Posted by AtomSoft View Post
The issue i have is Sparkfun doesnt have that USB-TINY thing in stock.
Order from Optimal-Microsystems in Quebec.

Quote:
"JTAG USB OCD Programmer/Debugger for ARM processors"
SparkFun Electronics - JTAG USB OCD Programmer/Debugger for ARM processors

Just about a $20 difference but with that one i can supply the board power:
That unit is the same as the TINY, but has the additional features - power supply and serial.

Quote:
You know some here still have fuses I cant live without my breaker box. When fuses blow so does your wallet at least a breaker is resetable
I'm a renter-for-life (too poor to buy a house) so I'm familiar with fuses. I rent falling down shacks for too much money. In most of these shacks anything you do (ANYTHING) is an improvement. Kick a hole in a wall and it's, "Ohhh! Nice decoration!". And yes, fuses suck.
__________________
=========================
Futz's Microcontrollers & Robotics
=========================

Last edited by futz; 21st January 2009 at 05:21 PM.
futz is offline  
Old 20th January 2009, 06:25 PM   #65
Default

Sorry, my mistake, that is what i get for opening my mouth before more than a cursury review. It has been seven years since I looked this close at the interrupt structure, and that was on an Atmel.

Dan

Last edited by Ubergeek63; 20th January 2009 at 06:26 PM.
Ubergeek63 is offline  
Old 20th January 2009, 07:56 PM   #66
Default

Quote:
Originally Posted by futz View Post
Order from Optimal-Microsystems in Quebec.


That unit is the same as the TINY, but has the additional features - power supply and serial.


I'm a renter-for-life (too poor to buy a house) so I'm familiar with fuses. I rent falling down shacks for too much money. In most of these things anything you do (ANYTHING) is an improvement. And yes, fuses suck.

I rent a apartment and until about 2-4 years ago we had fuses i guess i was too young to care but now i understand more and appreciate the breaker

Futz will you believe that i was going to order from them but those 2 things i need are in "backorder" stock.

Thats why i think heh a $20 increase isnt so much (even tho im a broke man lol)
AtomSoft is offline  
Old 21st January 2009, 12:08 AM   #67
Default

Quote:
Originally Posted by Ubergeek63 View Post
Sorry, my mistake, that is what i get for opening my mouth before more than a cursury review. It has been seven years since I looked this close at the interrupt structure, and that was on an Atmel.
Heh. Thought that might be it. I had just finished reading the User Manual and doing the code, so I knew I was right.
__________________
=========================
Futz's Microcontrollers & Robotics
=========================
futz is offline  
Old 21st January 2009, 01:39 AM   #68
Default

heh all in all this was a fun topic.

My PC hardrive just died so im reinstalling everything again
It was a old 40GB anyway i have 2 300GBs left to use but bad is to reinstall. I just got XP installed then SP2 (since i own xp sp1(HOME)) i just restored firefox with all my links and other personal stuff.

Now to install every thing else (about 20-30 programs easy!) lol
I should have all the money i need to get that LPC2148 ordered tomorrow. Yay! just about $10 away.
AtomSoft is offline  
Old 21st January 2009, 11:25 AM   #69
Default

Quote:
Originally Posted by futz View Post
Heh. Thought that might be it. I had just finished reading the User Manual and doing the code, so I knew I was right.
I think there are many who do not know ARMs have been out that long as micros. It has only been in the last few years that they have become really popular. I guess that makes me an old-timer!

I got our company started with them 7 years ago with a buggy compiler and start up code. Even though I am the hardware guy, I ended up bootstrapping the software group. Some of the ARM idiosyncrasies that you are not seeing are the multiple data bus widths, bus protocols, bus speeds, memory remapping (external memory - execution starts at add 0, but the ARM core "interrupt vectors" are there as well. actually single instructions that load the PC with the contents of the VIC service vector).

Dan
Ubergeek63 is offline  
Old 22nd January 2009, 01:41 PM   #70
Default

hey futz my pc blew up lol well my motherboard 4 capacitors blew. i tried replacing them but the damage is done. i had to use sisters PC to write this. Now i gita shell out $200 to replace mb/cpu/memory and IDE controller since i have 3 hds and a burner and most motherboards come with only 1 IDE connector now

I should be up in a week and have that LPC2148 also! I guess a break is in order
AtomSoft is offline  
Old 22nd January 2009, 03:28 PM   #71
Default

Quote:
Originally Posted by AtomSoft View Post
hey futz my pc blew up lol well my motherboard 4 capacitors blew. i tried replacing them but the damage is done. i had to use sisters PC to write this. Now i gita shell out $200 to replace mb/cpu/memory and IDE controller since i have 3 hds and a burner and most motherboards come with only 1 IDE connector now

I should be up in a week and have that LPC2148 also! I guess a break is in order
Haha! You're such a savage! I haven't bought an IDE drive in many years except for customer's machines. Switched to all SATA optical drives a couple years back too.

What a pain, huh? Popped or bulged caps is pretty much always death for a MB.
__________________
=========================
Futz's Microcontrollers & Robotics
=========================
futz is offline  
Old 22nd January 2009, 06:29 PM   #72
Default

Quote:
Originally Posted by futz View Post
What a pain, huh? Popped or bulged caps is pretty much always death for a MB.
Not if it's due to the capacitors been faulty, usually from the massive faulty batches a number of years ago. If the capacitors have blown because the PSU has gone high, then the board is probably toast though

I've replaced duff electrolytics in a number of boards, all behaved perfectly afterwards - my old machine at work used to crash a lot, replacing the domed caps cured it.

Assuming it is just duff caps, it's best to replace them before they cause any more damage, if the board is dead it's probably more than just caps.
__________________
PIC programmer software, and PIC Tutorials at:
http://www.winpicprog.co.uk
Nigel Goodwin is offline  
Old 23rd January 2009, 12:06 AM   #73
Default

yeah it goes on once and a while im sure something else is damaged tho. I just got a loner PC which ill use for the time being. I have another PC on the way also. Thank god i got friends
AtomSoft is offline  
Reply

Tags
interrupts, lpc2148, match, timer, work

Thread Tools
Display Modes


Similar
Title Starter Forum Replies Latest
LPC2148 async serial baud rate confusion futz Micro Controllers 23 30th December 2008 03:48 PM
Best way for homemade E-Match SMUGangsta Chit-Chat 8 2nd November 2008 09:43 PM
Two circuits ground do not match xtcx Electronic Projects Design/Ideas/Reviews 3 24th December 2007 09:03 AM
I don't know why my Periodic ON-OFF Timer don't work. They are two CD4541. taotoon Electronic Projects Design/Ideas/Reviews 7 29th October 2007 03:10 AM
Need Help in Timer Interrupts, CCS C and PIC16F628A mysemcon2000 Micro Controllers 0 4th November 2006 02:12 PM



All times are GMT. The time now is 04:58 AM.


Electronic Circuits  |  Learning Electronics
eXTReMe Tracker