Working with the ATMega328, I found that I had to set the prescaler
(TCCR0B) after I assigned the interrupt vector. So, you might try

: tim0start ( -- )  tim0ini +tim0int  5 TCCR0B c! ; (remove the prescaler
store from tim0ini )

It worked for me.

BTW thanks to the list for help with the lfuse clock issue... obviously I
got it solved!


On Fri, Jan 20, 2012 at 7:07 AM, Robert Epprecht <eppre...@solnet.ch> wrote:

> Matthias Trute <mtr...@web.de> writes:
>
> My chip is labelled ATMEGA-328-PU
> I have included atmega328p.frt
> Hope that's ok?
>
> > Are the numbers behind the T-labels correct (memory mapped addresses,
> > somewhere around $40ff) for the Atmega328p?
> hex TCCR0A .
> 44
>
> > Otherwise it looks like you're programming
> > the wrong controller.
> ???
>
> > Loosing the ACM device is really strange,
> yes
>
> > need-to-reflash by writing a single byte is
> > very unusual as well.
> well this single byte was enabling an interrupt,
> but strange anyway...
>
> Robert
>
>
> ------------------------------------------------------------------------------
> Keep Your Developer Skills Current with LearnDevNow!
> The most comprehensive online learning library for Microsoft developers
> is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
> Metro Style Apps, more. Free future releases when you subscribe now!
> http://p.sf.net/sfu/learndevnow-d2d
> _______________________________________________
> Amforth-devel mailing list for http://amforth.sf.net/
> Amforth-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/amforth-devel
>
------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
Amforth-devel mailing list for http://amforth.sf.net/
Amforth-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amforth-devel

Reply via email to