Yahoo Groups archive

AVR-Chat

Index last updated: 2026-04-28 22:41 UTC

Messages

Browse messages

Page 136 of 307 · 15341 messages matched

Re: [AVR-Chat] now what?

2006-12-31 by John Samperi

At 06:06 AM 31/12/2006, you wrote: > .dseg > >TABLE: And of course I just realized that you are trying to put a .db statement in RAM (.dseg) which is impossible to do. A .db can only exist in Flash (.cseg) or EEPROM (.eseg) and never in RAM (.dseg). If you end up using .cseg for

Thread view Attachments: 0

Re: [AVR-Chat] now what?

2006-12-31 by John Samperi

At 06:06 AM 31/12/2006, you wrote: >RESET: > rjmp START ................. >; Program starts here after Reset >; >START: I hope you do REALLY HAVE A PROGRAM here and not just the table :) and have a .cseg defined at this point. > .dseg I never have any spaces with a directive such

Thread view Attachments: 0

Re: [AVR-Chat] strange -problems?

2006-12-31 by Robert Adsett

At 05:41 PM 12/30/2006 -0600, Thomas Keller wrote: >I stepped through the code....it is doing something really strange. >When it gets to the last instruction (out TCNT0, r31 which is at >address 0x16) it jumps to 0x17 (which is one byte past the last >instruction in the code, per

Thread view Attachments: 0

RE: [AVR-Chat] strange -problems?

2006-12-31 by larry barello

Perhaps you should put in this at the end: Done: Rjmp Done To prevent the CPU from running on like it want's to. -----Original Message----- From: AVR-Chat@yahoogroups.com [mailto:AVR-Chat@yahoogroups.com] On Behalf Of Thomas Keller Sent: Saturday, December 30, 2006 3:41 PM To: av

Thread view Attachments: 0

strange -problems?

2006-12-30 by Thomas Keller

I stepped through the code....it is doing something really strange. When it gets to the last instruction (out TCNT0, r31 which is at address 0x16) it jumps to 0x17 (which is one byte past the last instruction in the code, per the mapper) issues an "unsupported instruction: muls",

Thread view Attachments: 0

Re: [AVR-Chat] now what?

2006-12-30 by Jim Wagner

Step through the code with the Studio Simulator and see where it is going wrong! Jim On Sat, 30 Dec 2006 13:06:09 -0600 Thomas Keller wrote: > Easy for you to say ! *grin* > > include "tn25def.inc" > > ; Define here the variables > ; > .def temp =r16 > > ; Define here Reset and i

Thread view Attachments: 0

Re: [AVR-Chat] now what?

2006-12-30 by Thomas Keller

Easy for you to say ! *grin* include "tn25def.inc" ; Define here the variables ; .def temp =r16 ; Define here Reset and interrupt vectors, if any ; RESET: rjmp START reti ; Addr $01 reti ; Addr $02 reti ; Addr $03 reti ; Addr $04 reti ; Addr $05 reti ; Addr $06 Use 'rjmp myVector

Thread view Attachments: 0

Re: [AVR-Chat] now what?

2006-12-30 by Ned Konz

Thomas Keller wrote: > Yeah, except that I am not using the stack. I have no subroutine > calls, and I never address the stack in any way. There are all of about > 8 lines of code in this fiel so far. All I do is set up a few values > and stuff them in some control registers. Why

Thread view Attachments: 0

Re: [AVR-Chat] now what?

2006-12-30 by Thomas Keller

Yeah, except that I am not using the stack. I have no subroutine calls, and I never address the stack in any way. There are all of about 8 lines of code in this fiel so far. All I do is set up a few values and stuff them in some control registers. \ larry barello wrote: > > Sound

Thread view Attachments: 0

RE: [AVR-Chat] now what?

2006-12-30 by larry barello

Sounds like a stack problem and returning to never-never land (random op-codes in un-initialized memory in the simulator) or just the program running into your .db statements thinking it was code. -----Original Message----- From: AVR-Chat@yahoogroups.com [mailto:AVR-Chat@yahoogro

Thread view Attachments: 0

Re: [AVR-Chat] now what?

2006-12-30 by Thomas Keller

OK. Nope. That didn't help any. I am getting infinite looping at addresses beyond the end of my generated code (0x17 and 0x117), with errors of "illegal opcode" and "illegal instruction" (MUL and MULS) There are not looping instructions in the code. The last instructionof the cod

Thread view Attachments: 0

now what?

2006-12-30 by Thomas Keller

Alright, I am totally flumbasted by this one. The first line in my code is .include "tn25def.inc" which is working. Yet, when I run the code in the simulator, the debugger is dumping a gazillion errors at me, mostly begin geenrated by my .db statements. The data are apparently be

Thread view Attachments: 0

Re: [AVR-Chat] invalid number?

2006-12-29 by Thomas Keller

Thanks, John. I figured that out about 3 minutes before your reply arrived in my inbox *blush*. Yeah, I was using the label, but switched tot he literal in a failed attempt to eliminate the error. tom John Samperi wrote: > > At 11:47 AM 29/12/2006, you wrote: > > out r31, 0x2f ;

Thread view Attachments: 0

Tutorial microcontroller Atmel and PIC

2006-12-29 by Anggoro Dwi L

Tutorial microcontroller Atmel and PIC. You can get in website : www.microcontroller-microcontroller.blogspot.com __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com [Non-text porti

Thread view Attachments: 0

Re: [AVR-Chat] invalid number?

2006-12-29 by John Samperi

At 11:47 AM 29/12/2006, you wrote: > out r31, 0x2f ; store in timer/counter 1 You have them back to front :) Try out 0x2f,r31 ; store in timer/counter 1 Better use the actual register name (TCNT1 ??) rather than the address as it may change in another chip so that you will be abl

Thread view Attachments: 0

invalid number?

2006-12-29 by Thomas Keller

Inthe following code, I am getting a fata "Invalid Number" error on the line with the out instruction. I have tried this with bot h the register name as defined in the def file (TCNT0) as well as with the literal register address (0x2f), which is the value defined in 1n15def.inc

Thread view Attachments: 0

RE: [AVR-Chat] What's this IC?

2006-12-28 by fxguthri@excite.com

Hello:) Here's the info you want on the P89LPC931F : http://www.keil.com/dd/chip/3550.htm Data sheets, user's info, etc. Good luck! Frank _______________________________________________ Join Excite! - http://www.excite.com The most personalized portal on the Web! [Non-text portio

Thread view Attachments: 0

What's this IC?

2006-12-28 by praveen kumar

hi frens, Is anybody know the the IC named P89LPC931F which is found on JMY-502 ,contactless smart card reader module along with MF RC500 reader. I'm not finding the datasheet for these ICs, how can i get these datasheets? praveen pinn@cle Send free SMS to your Friends on Mobile

Thread view Attachments: 0

Re: [AVR-Chat] Anyone using Kontrollerlab?

2006-12-28 by Jim Wagner

There was a reference to Kontrollerlab on the AVRFreaks board within the last few days. A search there might show something. Jim On Wed, 27 Dec 2006 13:01:57 -0600 Don AE5K wrote: > I just happened to run across a recent (beta) Linux-based > IDE for the > AVR and wonder if anyone

Thread view Attachments: 0

Anyone using Kontrollerlab?

2006-12-27 by Don AE5K

I just happened to run across a recent (beta) Linux-based IDE for the AVR and wonder if anyone on this list has had any experience with it yet? I have moved to Linux (in my case Debian) for most of my work, but still maintain Windows for such things as AVRStudio and a few others.

Thread view Attachments: 0

Re: [AVR-Chat] illegal registers?

2006-12-26 by John Samperi

At 09:29 AM 27/12/2006, you wrote: > ld r31, 0xff ; load 255 into temp register That should be LDI (load immediate). ld is only used with index registers. ie ld r31,z ;load r31 from **RAM** location pointed to by Z. Regards John Samperi *******************************************

Thread view Attachments: 0

illegal registers?

2006-12-26 by Thomas Keller

Here is an example of code I cannot assemble successfully. Again, it is complaining about illegal register names, etc.: .include "tn15def.inc" ; Define here the variables ; .def temp =r16 ; Define here Reset and interrupt vectors, if any ; reset: rjmp start reti ; Addr $01 reti ;

Thread view Attachments: 0

Re: [AVR-Chat] mnemonics?

2006-12-21 by David VanHorn

> > > Trying removing the spaces after the comma ( shouldn't make any > difference). I've never seen that make a difference. I'm suspecting something very odd.. [Non-text portions of this message have been removed]

Thread view Attachments: 0

Re: [AVR-Chat] mnemonics?

2006-12-21 by John Samperi

At 07:35 AM 22/12/2006, you wrote: > > mov r2, r16 ; copy status to high register > > This results in multiple "illegal register" errors. ....... >Something funny's going on, that's for sure.. That's entirely legal. Trying removing the spaces after the comma ( shouldn't make any

Thread view Attachments: 0

Re: bypass capacitor

2006-12-21 by Richard

See that wire on your scope probe? That is an antenna, get rid of it. Take of the probe clip (witches hat) and wrap a bare wire around the metal ground sleeve. Probe again using this wire to ground, it should be as short as possible, less than an inch. I bet things look different

Thread view Attachments: 0

Re: [AVR-Chat] mnemonics?

2006-12-21 by David VanHorn

On 12/21/06, Thomas J Keller wrote: > > I am having a strange problem. Using the AVR Assembler whic is > integrated into AVR Studio 4,I am running into problems with register > identification. > > Example: > > mov r2, r16 ; copy status to high register > > This results in multipl

Thread view Attachments: 0

mnemonics?

2006-12-21 by Thomas J Keller

I am having a strange problem. Using the AVR Assembler whic is integrated into AVR Studio 4,I am running into problems with register identification. Example: mov r2, r16 ; copy status to high register This results in multiple "illegal register" errors. Why? I am including the app

Thread view Attachments: 0

RE: [AVR-Chat] question about bit banged and TWI

2006-12-21 by Randy Ledyard

and if that mcu could fly, all the people on the ground would cry its a bitty-bitty-bang-bang !!! > -----Original Message----- > From: AVR-Chat@yahoogroups.com [mailto:AVR-Chat@yahoogroups.com]On > Behalf Of Ken Arck > Sent: Thursday, December 21, 2006 9:47 AM > To: AVR-Chat@yaho

Thread view Attachments: 0

RE: [AVR-Chat] question about bit banged and TWI

2006-12-21 by steve childress

Bit-banged means that a chip's serial port method has slanted bits that must be banged so that the are vertically aligned. _____ From: AVR-Chat@yahoogroups.com [mailto:AVR-Chat@yahoogroups.com] On Behalf Of maria mastik Sent: Wednesday, December 20, 2006 3:21 AM To: AVR-Chat@yaho

Thread view Attachments: 0

Re: [AVR-Chat] question about bit banged and TWI

2006-12-21 by Leon Heller

----- Original Message ----- From: "maria mastik" To: Sent: Wednesday, December 20, 2006 11:20 AM Subject: [AVR-Chat] question about bit banged and TWI > Hi everybody > can anyone please tell me that what is bit banged comunication? It's doing something like RS-232 or SPI comms u

Thread view Attachments: 0

question about bit banged and TWI

2006-12-20 by maria mastik

Hi everybody can anyone please tell me that what is bit banged comunication? I have one more question: I have read about TWI comunication and tride to use it in CodeVisionAVR but it was not successful; so would any one please send me an example code about TWI. TanQ anyway. Mohamm

Thread view Attachments: 0

Looking for i2c (TWI) using USI example (AVR Butterfly ATmega169)

2006-12-15 by James Ronald

Tonight I tried to compile the i2c examples in AVRlib. I found that the AVR Butterfly does not support i2c the same as the ATmega8, 128, 16, 163 and such. Instead, the 169 uses the USI to do TWI. I did find Atmel application note 310 which describes how to go about setting up USI

Thread view Attachments: 0

Re: [AVR-Chat] bypass capacitor

2006-12-13 by David VanHorn

On 12/13/06, np np wrote: > > But what about spurious spikes and surges caused by noise from the mains > getting through? > > I remember an old home computer I had that would crash every time the > fridge switched on. Clearly poor noise filtering. That's a whole different issue.

Thread view Attachments: 0

Re: [AVR-Chat] What is your suggestion?

2006-12-13 by np np

I left one group because the rules for messages became intolerable. I found in the end I could not be botherd to forward my valuable advice because it was simply too much effort ! A little tolerance is called for. http://www.ckp-railways.talktalk.net/pcbcad21.htm Cat C wrote: I h

Thread view Attachments: 0

Re: [AVR-Chat] bypass capacitor

2006-12-13 by np np

But what about spurious spikes and surges caused by noise from the mains getting through? I remember an old home computer I had that would crash every time the fridge switched on. Clearly poor noise filtering. http://www.ckp-railways.talktalk.net/pcbcad21.htm Jim Wagner wrote: On

Thread view Attachments: 0

Re: [AVR-Chat] bypass capacitor

2006-12-13 by Jim Wagner

On Wed, 13 Dec 2006 08:28:29 -0000 "magzky02" wrote: > usually, bypass capacitors are placed at all vcc pins of > ic's and are > layouted as near as posible to filter out voltage > ripples...i tried to > measure the ripples using digital scope and it was around > 300mV...but > i

Thread view Attachments: 0

Re: [AVR-Chat] using cli/sei pairs

2006-12-13 by Ned Konz

Reza wrote: > Hi; > > Thanks specially for suggestions made by "Ned Konz". > Thats seems to be helpfull. i'l try it. > > Thanks for commenting hints from Jim, also. > > but about using cli/sei pairs programatically in code, > using this style of coding, may make some problems bcz

Thread view Attachments: 0

Re: [AVR-Chat] Timer 1 Troubles

2006-12-13 by Mark Jordan

On 13 Dec 2006 at 14:53, dr_bitbucket wrote: > I'm writing some assembly code for an ATtiny24 for a new project. I > need to use timer1 to PWM output PA5 (OC1B) (pin 8, I believe) at > close to 38 kHz and 50% PW, it's for an IR LED being sensed by an > IS1U60. I am using timer0 f

Thread view Attachments: 0

Re: [AVR-Chat] bypass capacitor

2006-12-13 by David VanHorn

On 12/13/06, magzky02 wrote: > > usually, bypass capacitors are placed at all vcc pins of ic's and are > layouted as near as posible to filter out voltage ripples...i tried to > measure the ripples using digital scope and it was around 300mV...but > i think my scope is not accura

Thread view Attachments: 0

Re: [AVR-Chat] What is your suggestion?

2006-12-13 by Cat C

I have another suggestion: I'm thinking it would be nice if the "Subject" field would be worded such that looking at it one can tell what it's about, rather than generic sentences that don't give a clue. For example "Timer 1 Troubles" is pretty good, "Tiny24 Timer 1 Troubles in A

Thread view Attachments: 0

Re: [AVR-Chat] Timer 1 Troubles

2006-12-13 by Don AE5K

Evan, I have not tried the tiny24, but on several other tiny new parts, there is apparently a bug in the simulator with the timers and I've run into similar strange problems. If you dig deep enough in the online help for the studio, there is a note in there about that as known pr

Thread view Attachments: 0

Re: [AVR-Chat] What is your suggestion?

2006-12-13 by Reza

Hi; Thanks specially for suggestions made by "Ned Konz". Thats seems to be helpfull. i'l try it. Thanks for commenting hints from Jim, also. but about using cli/sei pairs programatically in code, using this style of coding, may make some problems bcz of forgetting to write such c

Thread view Attachments: 0

Timer 1 Troubles

2006-12-13 by dr_bitbucket

I'm writing some assembly code for an ATtiny24 for a new project. I need to use timer1 to PWM output PA5 (OC1B) (pin 8, I believe) at close to 38 kHz and 50% PW, it's for an IR LED being sensed by an IS1U60. I am using timer0 for PWM motor control (which works just fine), and I w

Thread view Attachments: 0

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.