The Philippine Electronics and Technology Forum
February 09, 2012, 06:42:16 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
 
   Home   Help Search Login Register  

Pages: [1] 2   Go Down
  Print  
Author Topic: Paano gamitin yung DATA LOGGING or internal memory ng Zilog Microcontroller  (Read 2352 times)
Xnel
Size AA Battery
****

Pogi/Ganda Points: 4
Offline Offline

Gender: Male
Posts: 110



« on: September 29, 2009, 09:08:58 PM »

Paturo po paano gamitin yung internal memory ng IRC SLIMBOARD microcontroller w/z8f6421, yung DATA LOGGING

kasi problem namin kung mawala bigla yung power supply ng MCU (ex. nagbrownout) mawawala lahat ng pervious data na nakastore dun sa MCU.. di po ako marunong sa features ng MCU paano gamitin yung internal memory ng MCU.. paturo po sa program... thanks ^^,
Logged

April Board naman magbabagong buhay Smiley
The Philippine Electronics and Technology Forum
« on: September 29, 2009, 09:08:58 PM »

 Logged
marcelino
Technical People
Solar Power Satellite
*****

Pogi/Ganda Points: 247
Offline Offline

Posts: 5861


...keep moving forward! - Robinson's


« Reply #1 on: September 29, 2009, 09:25:43 PM »

may eeprom ba ang z8f6421 Huh

parang wala eh...

mag-add ka ng external eeprom like the 24C series chips. I2C yata ang interface nito... tamang tama at may hardware I2C ang slimboard. or pwede din yung mga SPI interfaced EEPROM.
Logged

"Don't take life seriously. After all, no one has ever come out of it alive. -Bugs Bunny"
Xnel
Size AA Battery
****

Pogi/Ganda Points: 4
Offline Offline

Gender: Male
Posts: 110



« Reply #2 on: September 29, 2009, 10:35:36 PM »

uhmm di naman malaking memory need ko... need ko lang nandun parin mga nkastore na info if ever meron brownout.....

BTW. prepaid kilowatthour meter project namin...m

problem lang namin kung mag brownout meerase lahat ng ininput nf costumer(ex. LOAD in Pesos, kilowatthour value).
Logged

April Board naman magbabagong buhay Smiley
marcelino
Technical People
Solar Power Satellite
*****

Pogi/Ganda Points: 247
Offline Offline

Posts: 5861


...keep moving forward! - Robinson's


« Reply #3 on: September 29, 2009, 10:48:46 PM »

uhmm di naman malaking memory need ko... need ko lang nandun parin mga nkastore na info if ever meron brownout.....

BTW. prepaid kilowatthour meter project namin...m

problem lang namin kung mag brownout meerase lahat ng ininput nf costumer(ex. LOAD in Pesos, kilowatthour value).

mura lang naman ang eeprom... dito saamin sa probinsya, 95pesos ang 24LC08. siguradong mura dyan sa manila...

magdadagdag ka nga lang ng code.... siguro lagyan mo ng timer. say every 10mins, magsesave sya. nga pala. kahit ioverwrite nalang siguro.
tapos naman during start up ng system, babasahin nya na muna yung dati para ilagay sa buffer.
Logged

"Don't take life seriously. After all, no one has ever come out of it alive. -Bugs Bunny"
Xnel
Size AA Battery
****

Pogi/Ganda Points: 4
Offline Offline

Gender: Male
Posts: 110



« Reply #4 on: September 29, 2009, 11:04:56 PM »

taga iloilo po ako.. Grin. available ba yan sa local electronics shop or oorder pa kami sa e-gizmo online...  Huh
Logged

April Board naman magbabagong buhay Smiley
marcelino
Technical People
Solar Power Satellite
*****

Pogi/Ganda Points: 247
Offline Offline

Posts: 5861


...keep moving forward! - Robinson's


« Reply #5 on: September 29, 2009, 11:20:36 PM »

taga iloilo po ako.. Grin. available ba yan sa local electronics shop or oorder pa kami sa e-gizmo online...  Huh

tanong ka nalang sa local store nyo... hehehe Grin

kung wala, siguradong order ka nalang sa e-gizmo, di ko alam kung meron dun.
Logged

"Don't take life seriously. After all, no one has ever come out of it alive. -Bugs Bunny"
insomartin
Guest
« Reply #6 on: September 29, 2009, 11:24:52 PM »

sir marce di po ba pwede mag lagay nang variable sa program flash?
Logged
Xnel
Size AA Battery
****

Pogi/Ganda Points: 4
Offline Offline

Gender: Male
Posts: 110



« Reply #7 on: September 29, 2009, 11:27:57 PM »

tiningan ko yung specs ng 24LC08 sa net... rami pins... paturo paano iinterface sa IRC SLIMBOARD microcontroller w/z8f6421...  Grin. Ty po.
Logged

April Board naman magbabagong buhay Smiley
rdpzycho
Technical People
Solar Power Satellite
*****

Pogi/Ganda Points: 465
Offline Offline

Gender: Male
Posts: 9155


Perfection is an Illusion


WWW
« Reply #8 on: September 29, 2009, 11:31:51 PM »

baka pwede sa Flash.
Logged

‎"Keep on starting, and finishing will take care of itself."

- Neil Fiore
marcelino
Technical People
Solar Power Satellite
*****

Pogi/Ganda Points: 247
Offline Offline

Posts: 5861


...keep moving forward! - Robinson's


« Reply #9 on: September 29, 2009, 11:41:38 PM »

baka pwede sa Flash.


anong flash sis? yung flash memory mismo? ROM?

tiningan ko yung specs ng 24LC08 sa net... rami pins... paturo paano iinterface sa IRC SLIMBOARD microcontroller w/z8f6421...  Grin. Ty po.


8 pins lang ah!
http://www.sullivan-county.com/ele/pdf/24lc08.pdf
Logged

"Don't take life seriously. After all, no one has ever come out of it alive. -Bugs Bunny"
rdpzycho
Technical People
Solar Power Satellite
*****

Pogi/Ganda Points: 465
Offline Offline

Gender: Male
Posts: 9155


Perfection is an Illusion


WWW
« Reply #10 on: September 29, 2009, 11:45:20 PM »

sa program memory sis. 'di ba pwede mag-allot ng some part ng program para lagyan ng constants at pwedeng palitan?
Logged

‎"Keep on starting, and finishing will take care of itself."

- Neil Fiore
insomartin
Guest
« Reply #11 on: September 29, 2009, 11:46:15 PM »

yes... bakit yung boot loader nakakapagprogram nang walang mclr? (reffering to pic) sorry kabibili ko lang nang libro ni sison. nakita ko dun pwede daw mag write sa flash...
Logged
insomartin
Guest
« Reply #12 on: September 29, 2009, 11:48:50 PM »

bakit nga ba walang internal eeprom yung zilog?
Logged
marcelino
Technical People
Solar Power Satellite
*****

Pogi/Ganda Points: 247
Offline Offline

Posts: 5861


...keep moving forward! - Robinson's


« Reply #13 on: September 29, 2009, 11:54:19 PM »

ayun naiintindihan ko na... pwede nga naman pala.
literature: EEPROM Emulation with a Z8 Encore! XP Flash MCU Application Note
Logged

"Don't take life seriously. After all, no one has ever come out of it alive. -Bugs Bunny"
Xnel
Size AA Battery
****

Pogi/Ganda Points: 4
Offline Offline

Gender: Male
Posts: 110



« Reply #14 on: September 30, 2009, 12:09:15 AM »

TY.. he3 sesnya na baguhan plng ako sa microcontroller pero parang naintindihan ko laman sa link... ty.  Cheesy
Logged

April Board naman magbabagong buhay Smiley
marcelino
Technical People
Solar Power Satellite
*****

Pogi/Ganda Points: 247
Offline Offline

Posts: 5861


...keep moving forward! - Robinson's


« Reply #15 on: September 30, 2009, 12:12:09 AM »

TY.. he3 sesnya na baguhan plng ako sa microcontroller pero parang naintindihan ko laman sa link... ty.  Cheesy

good luck on that!
kapag successful ka... you might want to share it with us. Wink
Logged

"Don't take life seriously. After all, no one has ever come out of it alive. -Bugs Bunny"
Xnel
Size AA Battery
****

Pogi/Ganda Points: 4
Offline Offline

Gender: Male
Posts: 110



« Reply #16 on: October 01, 2009, 09:02:14 PM »

unfortunately di success hu3... nabasa ko yung help option ng ZDS II program... hirap gamitin yung Flash memory ng slimboard MCU.....  Huh sino dito magaling sa IRC slimboard MCU w/ z8f6421? he3. paturo paano makagamit ng internal memory ng MCU in-case magbrownout...

pero eto yung instruction ng zilog na binabasa ko ngayon, baka makatulong kayo hirap kasi intindihin... need ko para isave yung password at remaining value ng kilowatthour na natira sa load ng Prepaid kilowatthourmeter namin in case of brownout. Ty ty sa makakatulong... Cry :

WRITE_FLASH

The WRITE_FLASH function is a Zilog function that writes a value to Flash memory at the specified address.

Synopsis

#include <ez8.h>
void reentrant WRITE_FLASH(rom const void *addr,char val);

Returns

If successful, the function returns zero; otherwise, it returns a nonzero value.

Example

#include <eZ8.h>
char x;
void main()
{
INIT_FLASH(_DEFFREQ); /* Target clock frequency */
WRITE_FLASH((rom const *)0x2f00,x); /* write to Flash */
x = READ_FLASH((rom const *)0x2f00); /* read from Flash */
}

NOTE: Do not write to Flash memory more than twice. To write to Flash memory more than twice, you need to do a page erase.

When you use the WRITE_FLASH function to write to Flash, the target clock frequency needs to be initialized using the INIT_FLASH function (see INIT_FLASH).

Beginning with the ZDS II for Z8 Encore! release 4.8, there is a slight change in the function prototype for WRITE_FLASH.

Previous Prototype

#if defined(_Z8F642)

void reentrant WRITE_FLASH(rom const void *addr,char val);

#else

void intrinsic reentrant WRITE_FLASH(rom const void *addr,char val);

#endif

New Prototype

void reentrant WRITE_FLASH(rom const void *addr,char val);

For most Z8 Encore! microcontroller variants, the intrinsic keyword has been deleted in the ZDS II release 4.8.0. This change is taken care of automatically as long as you are using the standard Zilog library version of WRITE_FLASH and including the standard header file ez8.h. However, since the new standard header uses the new prototype, if you have customized WRITE_FLASH in your application, you need to make modifications so that the header and function declarations agree.

Next: WRITE_NVDS

Previous: TDI
Logged

April Board naman magbabagong buhay Smiley
janbobis
CR2032 Battery
**

Pogi/Ganda Points: 3
Offline Offline

Gender: Male
Posts: 32


It's hard to bring good men down


« Reply #17 on: October 02, 2009, 09:55:51 AM »

The UPIRC Slimboard has indeed an EEPROM, more advanced p nga eh.. it's called the FLASH memory.
For the UPIRC's z8F6421 MCU, it has 64K of Flash memory.
Logged

//-------------------------------------------------//
//---- it's hard to bring good men down -----//
//-------------------------------------------------//
marcelino
Technical People
Solar Power Satellite
*****

Pogi/Ganda Points: 247
Offline Offline

Posts: 5861


...keep moving forward! - Robinson's


« Reply #18 on: October 02, 2009, 10:17:07 AM »

The UPIRC Slimboard has indeed an EEPROM, more advanced p nga eh.. it's called the FLASH memory.
For the UPIRC's z8F6421 MCU, it has 64K of Flash memory.

i am getting confused.

pauna ko lang, di ako masyado familiar with zilog. just started for that matter.

Ano ba talga?! (galit na!) heheh Grin  may EEPROM o wala? kasi po, i look at the datasheet, wala naman EEPROM!

I say that:
(1) walang EEPROM ang z8F64XX chips
(2) it utilized FLASH technology as its program memory or the ROM
(3) zilog provided a technique (as I posted earlier on this thread) that one could make a virtual EEPROM that will be written on the ROM.

I would be glad to be corrected.
Logged

"Don't take life seriously. After all, no one has ever come out of it alive. -Bugs Bunny"
tiktak
Gas Turbine
**

Pogi/Ganda Points: 171
Offline Offline

Gender: Male
Posts: 2498



WWW
« Reply #19 on: October 02, 2009, 10:24:12 AM »

as far as i know wala talaga EEPROM ang Z8F64XX chips at yung 64K na memory sa 6421 ay yung flash yun, sinabi din ito ni sir paranz sa isang thread di ko lang matandaan kung aling thread, kaya mas malaki ang program ng encore compared sa pic dahil wala itong internal EEPROM sa PIC meron Grin
Logged

Bakit andaming hindi marunong gumamit ng search?Huh
The Philippine Electronics and Technology Forum
   

 Logged
Pages: [1] 2   Go Up
  Print  
 
Jump to:  


Related Topics
Subject Started by Replies Views Last post
zilog encore XP ADC and data logging.. « 1 2 »
Zilog Microcontrollers
beginner wan 37 6681 Last post January 29, 2008, 02:03:23 PM
by microlan2008
Collaborative Project Proposal: Remote Data logging system for PHIVOLCS/PAG-ASA « 1 2 3 4 5 »
Personal, Academic and Commercial Electronics Projects
creedcradle 82 10077 Last post July 12, 2008, 11:29:55 AM
by shadowmandxbb
paano po gamitin ang occilloscopes
ECE Students
jem2 7 1088 Last post February 18, 2009, 01:16:16 PM
by danny
Arc Welding m/c ,pwede ba gamitin yung normal wall outlet?
Electrical Circuits and Devices
threx 5 1310 Last post October 23, 2009, 05:51:32 PM
by threx
Wireless BP monitoring with data logging
Thesis and Project Proposal
downloaderer 0 79 Last post July 07, 2011, 10:00:17 PM
by downloaderer
Zigbee+Ethernet Shield = dual data logging posible kaya???
Thesis and Project Proposal
downloaderer 2 71 Last post July 10, 2011, 06:49:55 PM
by downloaderer
Adding Android Internal memory
Cellular Phones and Accessories
Positron E+ 9 236 Last post January 22, 2012, 02:13:19 PM
by iaera6
Powered by MySQL Powered by PHP Powered by SMF 1.1.15 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!