Forum - MCS Electronics

 

FAQFAQ SearchSearch RegisterRegister Log inLog in

Search found 44 matches
www.mcselec.com Forum Index
Author Message
  Topic: getrc5 interupt
jasreb

Replies: 4
Views: 1113

PostForum: BASCOM-AVR Archive   Posted: Wed Dec 15, 2004 10:38 pm   Subject: getrc5 interupt
You should be able to just use Getrc5 in the main program loop, if there's no data it will just go past and execute the next command. works fine for me anyway in that way.
  Topic: pwm code problems with ATtiny13 and 15
jasreb

Replies: 8
Views: 2007

PostForum: BASCOM-AVR Archive   Posted: Wed Dec 15, 2004 10:35 pm   Subject: pwm code problems with ATtiny13 and 15
Hello Frank, thanks for the reply. Do you know where I can find a sample of code to do this (for any device) - I'm not familiar with this syntax, ie do I need to config the timer first, then set the r ...
  Topic: X-MAS Wishlist for BASCOM-AVR
jasreb

Replies: 24
Views: 4553

PostForum: BASCOM-AVR Archive   Posted: Tue Dec 14, 2004 10:37 am   Subject: X-MAS Wishlist for BASCOM-AVR
implementation of Bascom pwm for ATtiny13...
  Topic: M128 PWM Problem
jasreb

Replies: 6
Views: 968

PostForum: BASCOM-AVR Archive   Posted: Fri Dec 10, 2004 3:45 am   Subject: M128 PWM Problem
Thanks Steve for the info I will check it out. I would still like to know whether or not pwm function is supported in Bascom for ATiny13, it would make life much easier if it was! I already have worki ...
  Topic: M128 PWM Problem
jasreb

Replies: 6
Views: 968

PostForum: BASCOM-AVR Archive   Posted: Wed Dec 08, 2004 5:48 pm   Subject: M128 PWM Problem
this is interesting for me too because I can't get Bascom pwm to work at all on ATtiny 13, I think the same thing is happening, ie pwm for this device is not implemented in Bascom yet, and it needs to ...
  Topic: Use of PB5 (reset pin) as ADC0 input on ATiny13
jasreb

Replies: 2
Views: 666

PostForum: BASCOM-AVR Archive   Posted: Tue Dec 07, 2004 7:47 pm   Subject: Use of PB5 (reset pin) as ADC0 input on ATiny13
hello Mark

OFF works perfectly now instead of AVCC, thanks

(Still can't get Bascom pwm to work on Tiny13 though...)

Jason
  Topic: Reading ADC values into 8-bit byte, MSBits needed
jasreb

Replies: 4
Views: 1027

PostForum: BASCOM-AVR Archive   Posted: Tue Dec 07, 2004 2:56 pm   Subject: Reading ADC values into 8-bit byte, MSBits needed
Hello Mark

that works fine, don't need to use the interim variable and rotate. As you said just using shift works fine:

Vadc = Getadc(2) 'word
level = 128 'byte

Shift Vadc , Right , ...
  Topic: pwm code problems with ATtiny13 and 15
jasreb

Replies: 8
Views: 2007

PostForum: BASCOM-AVR Archive   Posted: Tue Dec 07, 2004 12:22 pm   Subject: pwm code problems with ATtiny13 and 15
Shouldn't there be something in the ATtiny13.dat file like

OCR0A_PORT=PORTB.0 ; Output compare TIMER0A
OCR0B_PORT=PORTB.1 ; Output compare TIMER0B

or something, like there is the the ...
  Topic: pwm code problems with ATtiny13 and 15
jasreb

Replies: 8
Views: 2007

PostForum: BASCOM-AVR Archive   Posted: Tue Dec 07, 2004 12:01 pm   Subject: pwm code problems with ATtiny13 and 15
Hi again

So does anyone know correct syntax to use Bascom pwm with ATtiny13? It won't compile for me. It would save me having to code my pwm by hand, seems a bit silly if the device has one sitting ...
  Topic: Reading ADC values into 8-bit byte, MSBits needed
jasreb

Replies: 4
Views: 1027

PostForum: BASCOM-AVR Archive   Posted: Mon Dec 06, 2004 7:09 pm   Subject: Reading ADC values into 8-bit byte, MSBits needed
Hi there

Nice one, I forgot to add the line

Vadc = Vadc_word

after I'd done the rotate, it works fine now Smile

Jason
  Topic: Reading ADC values into 8-bit byte, MSBits needed
jasreb

Replies: 4
Views: 1027

PostForum: BASCOM-AVR Archive   Posted: Mon Dec 06, 2004 12:57 am   Subject: Reading ADC values into 8-bit byte, MSBits needed
Hi there

Q: I want to read ADC, put answer in 8-bit byte variable, and compare result with 8-bit byte. ADC is reading OK but problem is in doing compare: if I use

Dim Vadc As byte ...
  Topic: Use of PB5 (reset pin) as ADC0 input on ATiny13
jasreb

Replies: 2
Views: 666

PostForum: BASCOM-AVR Archive   Posted: Sun Dec 05, 2004 1:19 am   Subject: Use of PB5 (reset pin) as ADC0 input on ATiny13
Hello, I have 2 questions regarding use of ADC on ATtiny13:

1) If I want to use pin1 (PB5 /reset and ADC0) as ADC input, do I have to set the "disable external reset" fuse first on the device? If ...
  Topic: pwm code problems with ATtiny13 and 15
jasreb

Replies: 8
Views: 2007

PostForum: BASCOM-AVR Archive   Posted: Sat Dec 04, 2004 5:01 pm   Subject: pwm code problems with ATtiny13 and 15
Hi

I know there's only 8-bit timer, I assume this is called "timer0"?

Whatever, question is still how can you use Bascom pwm command with Tiny13/15? The device hardware supports pwm, 1 on Tiny ...
  Topic: pwm code problems with ATtiny13 and 15
jasreb

Replies: 8
Views: 2007

PostForum: BASCOM-AVR Archive   Posted: Fri Dec 03, 2004 11:34 pm   Subject: pwm code problems with ATtiny13 and 15
Has anyone had any luck using Bascom pwm with ATtiny15 or 13 devices? My code which works fine with 2313 will not compile on either Tiny13 or 15...

With Tiny15 (2 timers, 1 pwm) and following code: ...
 
Page 3 of 3 Goto page Previous  1, 2, 3
All times are GMT + 1 Hour
Jump to: