Forum - MCS Electronics

 

FAQFAQ SearchSearch RegisterRegister Log inLog in

Search found 2506 matches
www.mcselec.com Forum Index
Author Message
  Topic: OT: Interfacing 3.3V and 5V components via I2C
AdrianJ

Replies: 2
Views: 386

PostForum: BASCOM-AVR Archive   Posted: Tue May 23, 2006 8:08 am   Subject: OT: Interfacing 3.3V and 5V components via I2C
Since I2C needs just passive pullups on the clock and data lines, you can just tie the pullups to 3.3 volt rail. Then the 5 volt Atmel will see 0-3 volt logic, and that is within the threshold range ...
  Topic: Jump to bootloader from main program, not on reset?
AdrianJ

Replies: 15
Views: 1634

PostForum: BASCOM-AVR Archive   Posted: Mon May 22, 2006 8:50 am   Subject: Jump to bootloader from main program, not on reset?
I also looked at the Atmel DES encryptor. God-awful complicated, and hard to maintain. Do you *really* need that level of security ?

I decided it ought to be 'good enough' to make it pretty diff ...
  Topic: eeprom corrupted/overwritten - any explanation why?
AdrianJ

Replies: 5
Views: 671

PostForum: BASCOM-AVR Archive   Posted: Mon May 22, 2006 8:25 am   Subject: eeprom corrupted/overwritten - any explanation why?
For mission-critical parameters, its a good idea to send a data packet generated by the PC with at least some sort of error checking on it. Then stray junk can ( almost ) never get past the error che ...
  Topic: Connecting AVRs ======== PLEASE HELP ========== 1WIRE , I2C
AdrianJ

Replies: 1
Views: 550

PostForum: BASCOM-AVR Archive   Posted: Mon May 22, 2006 8:16 am   Subject: Connecting AVRs ======== PLEASE HELP ========== 1WIRE , I2C
AFAIK there is no 1-wire slave system written for Bascom. I-wire is for talking to peripherals like the Dallas 1-wire chips.

Consider using I2C - two wires. Best if your micro has TWI subsystem i ...
  Topic: VB6 passing bytes to AVRs - something strange going on...
AdrianJ

Replies: 16
Views: 1221

PostForum: BASCOM-AVR Archive   Posted: Sun May 14, 2006 3:26 am   Subject: VB6 passing bytes to AVRs - something strange going on...
Luciano,

Thanks for the code. I did not get it to run directly on my XP machine - laptop without any serial port on Com1. But the clue was to install and register the latest Mscomm32.ocx. I had ...
  Topic: VB6 passing bytes to AVRs - something strange going on...
AdrianJ

Replies: 16
Views: 1221

PostForum: BASCOM-AVR Archive   Posted: Wed May 10, 2006 11:57 pm   Subject: VB6 passing bytes to AVRs - something strange going on...
Just been through that mill myself. VB and the MScomm control are not simple. Luciano has the right stuff.

Now how does one compile a VB project with an MScomm control in it on Win2000 so it will ...
  Topic: PortC
AdrianJ

Replies: 2
Views: 361

PostForum: BASCOM-AVR Archive   Posted: Sat May 06, 2006 5:14 am   Subject: PortC
To read a port, set the port as input, and then read the pin register:

dim bTest as byte

Config portc = input

btest = pinc

Yes its not intuitive, but Atmel decided to have different regist ...
  Topic: need some help !!
AdrianJ

Replies: 4
Views: 596

PostForum: BASCOM-AVR Archive   Posted: Fri Apr 07, 2006 9:21 am   Subject: need some help !!
The correct syntax for sending a character is

print chr(esc);

no $ required or permitted in Bascom
  Topic: SQR problem with versions after 1.11.7.4
AdrianJ

Replies: 5
Views: 676

PostForum: BASCOM-AVR Archive   Posted: Thu Apr 06, 2006 2:36 am   Subject: SQR problem with versions after 1.11.7.4
I very much doubt playing with the stack sizes will do anything - there are no subroutines in use here - at least not the type which use frame and sstack space.

If the code works with longs, have y ...
  Topic: serial input output settings
AdrianJ

Replies: 6
Views: 910

PostForum: BASCOM-AVR Archive   Posted: Tue Apr 04, 2006 2:28 am   Subject: serial input output settings
You should not set the osccal value unless there is some good reason to. The value is precalibrated at the factory for each chip, so that the frequency is within about 0.5 % of nominal. This should ...
  Topic: Direct Digital Synthesis. (DDS)
AdrianJ

Replies: 81
Views: 20037

PostForum: BASCOM-AVR Archive   Posted: Tue Apr 04, 2006 2:20 am   Subject: Direct Digital Synthesis. (DDS)
Yes, I do more things with this DDS than just a single tone. In fact I have twin outputs from the same wavetable, but I can adjust both independently for both amplitude and relative phase. So I can ...
  Topic: Direct Digital Synthesis. (DDS)
AdrianJ

Replies: 81
Views: 20037

PostForum: BASCOM-AVR Archive   Posted: Mon Mar 27, 2006 9:34 am   Subject: Direct Digital Synthesis. (DDS)
Sorry for that, comes from writing code "on the fly"

the statements
lds zl,{low wWavetable}
lds zh,{high wWavetable}

should be
lds zl,{wWavetable}
lds zh,{wWavetable+1}

to get z pointed a ...
  Topic: Using an alternate IDE with Bascom...
AdrianJ

Replies: 2
Views: 740

PostForum: BASCOM-AVR Archive   Posted: Sat Mar 25, 2006 1:44 am   Subject: Using an alternate IDE with Bascom...
I use Boxer, another text/programming editor, for much the same thing. It will allow user tools, syntax coloring, etc too. And its FAST on very large files. I think I also tried UEdit a long time ...
  Topic: Direct Digital Synthesis. (DDS)
AdrianJ

Replies: 81
Views: 20037

PostForum: BASCOM-AVR Archive   Posted: Sat Mar 25, 2006 1:35 am   Subject: Direct Digital Synthesis. (DDS)
You can do what you want in Basic. What you need to do is get the address of the wavetable into Z.
Define a word variable in ram:
dim wWaveAddress as word

Then change that bit of code into
lds ...
  Topic: M8 pwm max 16khz?
AdrianJ

Replies: 26
Views: 2500

PostForum: BASCOM-AVR Archive   Posted: Sun Mar 19, 2006 6:37 am   Subject: M8 pwm max 16khz?
Yes, but you dont use PWM to do IR ( or any other sort ) of comms, you use timed pulses with variable width. I know this sounds like PWM, but its not.

With PWM you run a continuous pulse-train, ...
 
Page 166 of 168 Goto page Previous  1, 2, 3 ... 165, 166, 167, 168  Next
All times are GMT + 1 Hour
Jump to: