Forum - MCS Electronics

 

FAQFAQ SearchSearch RegisterRegister Log inLog in

Search found 485 matches
www.mcselec.com Forum Index
Author Message
  Topic: How to a convert UART data stream??
enniom

Replies: 6
Views: 935

PostForum: BASCOM-AVR Archive   Posted: Fri Jan 01, 2010 5:57 pm   Subject: How to a convert UART data stream??
MWS - your suggestion was BRILLIANT!

The code below shows the implementation.


$regfile = "attiny2313.dat" ' specify the used micro
$crystal = 8000000 ' used crystal fre ...
  Topic: How to a convert UART data stream??
enniom

Replies: 6
Views: 935

PostForum: BASCOM-AVR Archive   Posted: Thu Dec 31, 2009 11:13 pm   Subject: How to a convert UART data stream??
Thank-you Ross and Evert.

The problem I'm trying to tackle is the output from the third-party chip as INPUT into the Micro. It only communicates by issuing hex values delimited by a space characte ...
  Topic: How to a convert UART data stream??
enniom

Replies: 6
Views: 935

PostForum: BASCOM-AVR Archive   Posted: Thu Dec 31, 2009 8:25 pm   Subject: How to a convert UART data stream??
Hello Forum,

We are using a chip that conveniently communicates via the UART. We send a message PRINT "A0 1F 22" and it replies (after taking an unknown period of time) such that the message can b ...
  Topic: How to connect external 32khz crytal to Avr 162
enniom

Replies: 4
Views: 421

PostForum: BASCOM-AVR Archive   Posted: Sat Dec 26, 2009 4:15 pm   Subject: How to connect external 32khz crytal to Avr 162
The $Crystal statement refers to the operating frequency of the M162. Refer to datasheet for the internal crystal frequency - or, if you are using an external crystal on Pins 18 and 19 - use the freq ...
  Topic: How to connect external 32khz crytal to Avr 162
enniom

Replies: 4
Views: 421

PostForum: BASCOM-AVR Archive   Posted: Sat Dec 26, 2009 4:06 pm   Subject: How to connect external 32khz crytal to Avr 162
I've had success on other micros with the following:

Pins
14 +--||---GND
'''''''|
''''''O 32kHz crystal
'''''''|
15 +--||---GND

From the datasheet, it seems as if Pins 14 and 15 are the T ...
  Topic: Difference in Hardware and Software SPI?? - Part 2
enniom

Replies: 1
Views: 386

PostForum: BASCOM-AVR Archive   Posted: Mon Dec 14, 2009 4:33 pm   Subject: Difference in Hardware and Software SPI?? - Part 2
Hello Forum,

further to my posting of December 1, I have performed additional tests on the following SPI devices:

1. MRF24J40 - 2.4 GHz RF Transceiver
2. 23K640 - 64Kbit Serial RAM
3. 23K256 ...
  Topic: Is there a difference between Hardware and Software SPI??
enniom

Replies: 13
Views: 1255

PostForum: BASCOM-AVR Archive   Posted: Fri Dec 04, 2009 3:23 pm   Subject: Is there a difference between Hardware and Software SPI??
Hoang,

I assume that the images show the Clock as yellow and the Data Out of the micro (SPIOUT) as blue. If this is the case, I can offer the following:

1. It appears as if in the Hardware SPI, ...
  Topic: Is there a difference between Hardware and Software SPI??
enniom

Replies: 13
Views: 1255

PostForum: BASCOM-AVR Archive   Posted: Fri Dec 04, 2009 12:15 am   Subject: Is there a difference between Hardware and Software SPI??
Hoang,

I'm not sure I understand your question - but I'll do my best.

You'll see code at the begining of this thread that includes both Hardware SPI and Software SPI sample code that communicate ...
  Topic: Is there a difference between Hardware and Software SPI??
enniom

Replies: 13
Views: 1255

PostForum: BASCOM-AVR Archive   Posted: Thu Dec 03, 2009 12:59 am   Subject: Is there a difference between Hardware and Software SPI??
Thank-you Adrian for your support.

While your suspicion about Polarity and Phase may be right, all the combinations I tried (except for 2) resulted in errors and those 2 had the data shifted. I al ...
  Topic: Is there a difference between Hardware and Software SPI??
enniom

Replies: 13
Views: 1255

PostForum: BASCOM-AVR Archive   Posted: Wed Dec 02, 2009 7:41 pm   Subject: Is there a difference between Hardware and Software SPI??
Adrian,

further to my earlier posting, I have confirmed using the Microchip MCP3201 (12-bit ADC and Mega8535) that the Software SPI retrieves a different number than the Hardware SPI. The MSB is r ...
  Topic: Is there a difference between Hardware and Software SPI??
enniom

Replies: 13
Views: 1255

PostForum: BASCOM-AVR Archive   Posted: Wed Dec 02, 2009 4:00 pm   Subject: Is there a difference between Hardware and Software SPI??
Thank-you for all replies.

I've now compared the Hardware and Software SPI on 3 different micros and the results are as follows:

Using SPOUT and SPIIN (SPIMOVE gives similar results as SPIIN).
...
  Topic: Is there a difference between Hardware and Software SPI??
enniom

Replies: 13
Views: 1255

PostForum: BASCOM-AVR Archive   Posted: Wed Dec 02, 2009 1:00 am   Subject: Is there a difference between Hardware and Software SPI??
Thank-you Adrian for your prompt reply.

I think you'll find that Portb.4 - which is the SS for the Hardware SPI on the ATMEGA8535 - is set to OUTPUT and HIGH in the code (just before the CONFIG sta ...
  Topic: Is there a difference between Hardware and Software SPI??
enniom

Replies: 13
Views: 1255

PostForum: BASCOM-AVR Archive   Posted: Tue Dec 01, 2009 10:24 pm   Subject: Is there a difference between Hardware and Software SPI??
Hello,

During an experiment with writing to an EEPROM chip - in this case, the 93LC56 - I found that using Hardware SPI versus Software SPI yield different results. The Software definition works w ...
  Topic: SPI with EEPROM 93AA46/56/66 (or LC)
enniom

Replies: 1
Views: 353

PostForum: BASCOM-AVR Archive   Posted: Mon Nov 30, 2009 7:37 pm   Subject: SPI with EEPROM 93AA46/56/66 (or LC)
Hello Forum,

I've been stumped by what seems as a simple operation ... using ATMEGA8535 to store and retrieve 8-bit data on a 93LC46 using the CONFIG SPI=Hard ... definition (or, perhaps, it may be ...
  Topic: LCD 320x240 SED1335 SED13700 RA8835
enniom

Replies: 15
Views: 2535

PostForum: BASCOM-AVR Archive   Posted: Tue Nov 24, 2009 9:10 pm   Subject: Re: LCD 320x240 SED 1335
Good news!

Would you please post how you displayed size 16 fonts?

Thanks
 
Page 32 of 33 Goto page Previous  1, 2, 3 ... , 31, 32, 33  Next
All times are GMT + 1 Hour
Jump to: