Hi dazheng,
Need to know ... what is EEPROM used in MCU for ?. I know EEPROM stand for Electrical Erasable Programming ROM but I need to know what's the purpose or where it going to be used in MCU?
I ask this because some of MCU dont have EEPROM ( EEPROM = 0 byte) ie 80NC535 & 80NC321 and the best thing about this MCU (without EEPROM) that's its cheaper than MCU with EEPROM. If it just minor used and can solve it in other method (and not effect my project) , I will use it as I need to lower the cost as much as possible.
Any instruction (ie in proton) that must be used on MCU with EEPROM ?
More explanation greatly appreciated.
Thanks
zuisti
Hi "zuisti",
She wants the EEPROM for keeping the program when changed.
Will flash Magic Support this one ?
I happen to have a few pieces of this controller!!
I'm ready(?) with this work yet. It is a two mode (switchable) 8 char dot matrix display, working in Proteus, with source in javaC: I'm used a 89c734a.
- in scrolling mode it has a buffer for a max 54 chars message. The speed is controllable. - in static mode it is cascadable, set the position in the received string with the pos. switch.
The attached ZIP contains the orig. article (a PDF), as my start point. Please read it!
Please post here your minds!
"She wants the EEPROM for keeping the program when changed."
No, she doesn't. I checked with her and she wants it for calibration data storage.
forget the EEPROM.ive got something better
i have already implemented ADPCM successfully,the problem i am having with MMC card interfacing is that when i try to record compressed voice data on MMC card,the voice upon retrieval from the card at PC end gives a jerk after 2-3 seconds of voice play back may be this jerk is due to sector change ,every sector comprises 510 bytes
What i am trying to design is, the 83TF892 takes analog input data ,performs A/D conversion ,which generates 11-bit data samples at rate of 7.2KHz ,these data samples are then subjected to ADPCM speech compression which (?) generates 4 bit compressed data sample from 16-bit data sample ,then it takes other uncompressed data sample and compresses it to 4-bit ADPCM compressed data sample These two data samples are then packed in a single byte,this byte containing two ADPCM data sample is then written to MMC card.This is recording process once we are done with recording ,we need to retrieve the data , For retrieval the Micrcontroller reads compressed voice data from MMC sector by sector and transmits it to PC through serial port which is recorded on pc in binary file this binary file is decompressed using JavaC and then decompressed and converted to wave file through more JavaC code
can you help with any of it?
If you generate audio data at 7.2kHz - what do you think will happen if your PC can't play at that odd speed, and instead consume them at 8kHz speed?
zuisti,
ignoer the info from the trollops!
i thin kthe problem is you have a sector of 510 bytes.but mostly it is 512.
ya, im a wheel coder man. hahahaha
But ive got a problem with this now(?) so maybe you help me ;)
I make a simple ISOS DRSN file to toggle LED on PortD.4. I just connect 2 button on PortB. One button PortB.4 as reset button. PortB.7 as toggle swicth. I also put a delayMS = 500 as protection from button bounceying.
My question,
1. How to make LED toggle on rising edge instead of MCU have to scan the state condition of the button and respond according if.. then statement. That mean (for edge rising signal ... 0 to 5V) MCU been triggered by rising edge of signal from low to high or hight to low or high to high.
2. I'm using Xtal = 31Mhz ... and I dont connect any crytal (actually I want to use internal oscilator with PLL ) .... how to write the code for that ? any example ?
Thanks for any helps.
"i thin kthe problem is you have a sector of 510 bytes.but mostly it is 512."
Mostly 512? Check the spec again. What about the 518-byte sectors? And what about the 502-byte, 554-byte, and the jumbo 1024-byte sectors? We've got to handle those too. It's all there in section 3.1.4.1.59.
"1. How to make LED toggle on rising edge instead of MCU have to scan the state condition of the button and respond according if.. then statement. That mean (for edge rising signal ... 0 to 5V) MCU been triggered by rising edge of signal from low to high or hight to low or high to high."
Qualify the if/then with an X/OR of the LED input and TMR0's MSB. Trigger is best by rising edge of signal low to low.
"2. I'm using Xtal = 31Mhz ... and I dont connect any crytal (actually I want to use internal oscilator with PLL ) .... how to write the code for that ? any example ?"
You're in luck. I've already done the code for that. I made a development branch off of mainline and checked osc_cfg.c into Perforce.
dazheng,
your a great programmer man.sector size woz wrong!
Rego has been working now on a conversion to Proton Basic (I don't have skills about MCU basics yet, as I wrote). I somebody want to do this, my C source is simple and easy to understand I think...
i like your project much,and it is a good effort from u (converting it to JavaC project) but how about writing a (v.b interface to it) it will be very cool....
also did u test the real hardware (ig is there any problem in led power or anything like this)
this project can be upgraded with many opinons..
But ... my dear friend, please post your minds, repairs and opinions here!
"your a great programmer man."
Not true!
I am a great programmer.
"... my C source is simple and easy to understand I think."
Yeah, "you think", but you're wrong.
I've shown code from both of you around the shop here. They just laugh. It's really pretty sucky code. No wonder the prototype is so unstable.
now i got a hard question for yew hardware guru......
I need to choose a capacitor. Does you know how to choose right capacitor for example if we want to use 100 uF caps but with what suitable voltage because when we want to buy caps, the supplier asks "what voltage?"
i asked Rego and he says:
you need to know the maximum voltage across the capacitor in your application . for example if you put the capacitor in parallel with the voltage source, you choose the voltage capacitor higher than the voltage source. Vsource=12V -> Vcap=16V tipical values of voltage are 6.3V, 16V, 50V this are normalized And you need to know the maximum current in your application. For example if your power supply is for 1A current it might be nessesery to take 100uF capacitor for higher voltage because they are more powerfull and you will can get hier curr ent from them and can blow youre socks off!
is he right?
Note This message was edited to reduce width.
Of course he is right.
Too low voltage on your cap and you will loudly hear it protest!
Too high ripple current on your cap and it will get too hot.
It's only in school books you may talk about ideal components. In real life, there are always more than one parameter to specify when selecting components.
Some i, eh poster posted using pre !pre or some other 'technique' making it a pain in the gluteus maximus to read all entries.
Anyhow the post has wandered off, I do not see what camacitor voltage has to do with the original subject.
Erik
The original subject?
Oh, you mean the use of this forum as a private message board?
If the Keil staff just press delete on this kind of threads, people will learn - or at least select other sites.
I sure hope the thread DOESN'T end. How often is it that the rest of us can get an "inside" look at the caliber of programming used by such industry giants as Mattel?
These guys are geniuses! I just hope that they collaborate on a book!
You know...if you take the brain power of these two guys and just figure out a way to harness it...you might be able to toast bread! Lightly.
There are more than one way to toast bread. The only common part is the required heat and the burning smell :)
hope you had a good weekend.I saw you're sister over at the mall on saterday.i was waring a teeshirt ;-)
The latest work is a verrrry Interesting Project... and I really like it very much...... I know saying thank you is not enough for your hardwork and cleverness at doing this project..... but thats all i can do for the now.
I have build an app to work with the lovely app from jenjen.
Can you test it because i have very limit time now and tell me if working ?
Also if you want anything to add.
file is at the usual place.
The upload has problem or it limitation ?
yes i think the system could crash, but in my project i only use the lpt & the screen. if you think that the system would be stable. But my questions is what happens with MCU, maybe MCU dont like working without interruptions.i don't need to get back to MCU once my programm has finished.
this is like an embedded project the pc only has to show the signal from the picture in the screen.
ya, i know you saw her.our mum wasnot happy :O
Thanks for the compliments. but remember that the project wouldnt be so good if you werenot there to give me good profesional help and advise. i trust Your wisdnom and experience .
Rego was near right with capacitor. but he is not so profesional and right always ;)
best advise is have a capacitor that is biger for what you need. so if you need 50poofs you can use 100poofs (or more) and it will be ok. you MUST connect the right way or they pop!
your friend,
dazheng
No, poof capacitors (pF) are not polarized. Poff capacitors (electrolytes and tantals) are polarized.
The question here isn't if the capacitance should be doubled, but what voltage it should be, and if the ripple current is high enough that the ESR must be considered.
Hi again zuisti,
i check with jafnek about capacitors.he says that you should try to get the mylar ones bcoz they are more cheep and best for digital MCU baords. bcoz your board is more that 50meg you dont want the polyproperlene ones.he says they are no good at are not good at high speeds.
forget trollop bcoz he does npt know. if you connect wrong way(to mains) the capcitor will pop.
You really are a funny guy. The metallized polyester caps are not polarized...
And by the way - are you going to decouple to mains...
"The latest work is a verrrry Interesting Project... and I really like it very much...... I know saying thank you is not enough for your hardwork and cleverness at doing this project..... but thats all i can <do for the now."
Please cease the slow keyboard fingering. The "rrr" and "...." nonsense is discredits our project. We are being ridiculed.
"But my questions is what happens with MCU, maybe MCU dont like working without interruptions."
Next time I think we shouldn't be so parsimonious and should pay additional for the non-lazy version of the MCU.
YAAAAAAA.I found the answer to last week and i think we can go for it.
A op amp may be analogue in design but it is frequencly used in digital equipment, i.e. analog to digital converters , esp 'flash' conversion... the question asked is difficult to answer because it is phrased badly.. a op amp is as different to a 'analogue ic' as a apple is different to an cow, a analogue(?) ic may contain op amps, but it will also have other 'stuff'... an op amp is just that..no more
can we connect them togethr and make an automatic MCU input for the module?
the code for the capacitor is ok qnd i will get some tomorrow.the MP3 file is now working and i only get a jump each 27 seconds. you were very right with the sector size.
pleas e give me advise and your wisdom again.
"bcoz your board is more that 50meg you dont want the polyproperlene ones.he says they are no good at are not good at high speeds."
So, if I run at the high speed I should get the polywronglene ones? Since those are much harder to come by, I'll change the gating clocker to do low speeds. OK?
"a op amp is as different to a 'analogue ic' as a apple is different to an cow,"
No, an op amp is as different to a 'analogue ic' as a nectarine is to an badger.
"I saw you're sister over at the mall on saterday.i was waring a teeshirt ;-)"
Yikes! Is that all? Since we're fond of the word "trollop" here ... Nuf said. ;-)
* 5A3266E3-82B2-4DCB-8A0C-23BE1236021C still wonders if the mains is only 110V, or if the decouplingof the MCU will be to 220/230V AC.
* 5A3266E3-82B2-4DCB-8A0C-23BE1236021C also wonders which newspaper that will publish pictures of thelittle oops.
* 5A3266E3-82B2-4DCB-8A0C-23BE1236021C further hopes no ambulance will be needed.
I know you rbusy but i really need some advice from the programmer guru plz.
what is 'port change interrupt' (ports 4,5,6,7) means ... is it port change from low to high or high to low analog signal(?) or a changes of digital signal ie from 5V to 4.7V or 4.26V?
i need to further reduce the power consumption, all unused of hardware peripherals should be disabled. The pullups should be replaced with external resistors, and the internal pullups disabled with a resistor.but what value(?)
please be generous with your wisdoming voice.
Thanks,
"what is 'port change interrupt' (ports 4,5,6,7) means ... is it port change from low to high or high to low analog signal(?) or a changes of digital signal ie from 5V to 4.7V or 4.26V?"
Such silly questions.
Such a waste of a guru's time.
"what is 'port change interrupt' (ports 4,5,6,7) means ... "
Good grief. Just look it up. No wonder our project sucks so bad. You're just mucking about blindly without reading a thing.
GET WITH THE PROGRAM!
"is it port change from low to high or high to low analog signal(?) or a changes of digital signal ie from 5V to 4.7V or 4.26V?"
Yes.
internal pullups disabled with a resistor.but what value(?) This is an easy question. You need a resistor with the same value as the data sheet specifies for the internal pull-up, but with a negative value. Alas, negative resistances are a bit harder to manufacture, so it may affect your production cost slightly. I haven't seen anyone manufacturing monolithic negative resistors, but with a suitable power source and your loved op-amps, you may even produce your own negative resistors :)
morning dazheng,
ive been working for too long but making progress.
thanks for your guru advise.i now have another bug found but with the MCU talking but have talking between them wrong.
I am new to 874C35 and want to play with it. So I need to build a programmer. Please advice me which programmer should I build considering most supported device including 874C31, which also supports WINMCU200, heard it is very handy than ic-prog. Found this MCU programmer based on JIT programmer and seems handy to me because it supports both LRP and HCAP. Does anybody used this programmer ? Does it supports winmcu800? If so how to configure ?
i know you are busy but your experiece is needed for my helping .
yawn yawn.
Hi zuisti mate,
the 874C35 looks good.i have the datashits and i like facilities. the Programmer is not so easy to find and i saw 874C31 also but is diferent(?)
I look more for you.
can you give me profesional advise now please on motor drivers.
you were lookin at the efkar motor driver circit i think and i want to see schematic essentials exigent,
please assistance please
qotd
Remember! You are unique, just like everybody else.
great huh?!?!
View all questions in Keil forum