Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

AT89S52 @ 22.1184MHz is fast enought?

Status
Not open for further replies.

RFdata

Newbie level 6
Joined
Nov 27, 2008
Messages
12
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,407
22.1184

Hi, I´m working in a project, i´m using AT89S52 with a xtal at 22.1184MHz, I need to generate a binary coded sine wave with 20KHz at P1 with max and min amplitude using the 8bits of P1, 0000 0000 for min and 1111 1111 for max . It will be applied to a hi speed DAC

For a good reproduction of the wave I should amostrate with like 400KHz, this mean that the P1 get 400.000 values per second

The question is, can the 89S52 deal with that speed?

Tanks
 

at89s52 xtal

AT89S52 use 12 clock for one operation cycle

22.118.400 / 12 = 1.843.200 operation cycle per second

if you want to generate 400KHz,

1.843.200 / 400.000 = 4,608 cycle per wave form.
I think its difficult to use this microcontroller for your requirement even if you have very efficient code.

my suggestion is to use RISC microcontroller such as Atmel AVR, with one clock per most one operation cycle.
 

Hi
use RISC microcontroller such as Atmel AVR, with one clock per most one operation cycle is a good ideas
 

i think AT89S52 @ 12MHz
can meet ur requirments

12MHz÷12=1MHz
one oprating cycle = 1 micro second

u can send many of many values per second on this freq


u need 400 KHz wich is less than 1MHz.
1MHz means =1000000 values per second

and u need 400000 values per second!!!!!!!!1

i think it works .if im wrong plz correct me
 

Not at all.

Some instruction takes 1cycle, some 2 some 3.

This MCU is not good choice for your app. Use RISC. Memember that everything must be generated by FW. FW obviously contains much more codes than one signe line.

Follow Dian's suggestion.

b
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top