1. Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.
    Dismiss Notice

z8F042A interfacing to nokia 3310 for SMS

Discussion in 'Microcontrollers' started by jvincent_129, Nov 24, 2010.

  1. Diver300

    Diver300 Well-Known Member

    Joined:
    Oct 19, 2007
    Messages:
    3,063
    Likes:
    101
    Location:
    England
    4 k of memory should be plenty.

    RAM could be more of a problem. It is easier to debug code if you can first write the whole message into RAM, and then send it. If you have less RAM, you can generate the message as it is transmitted to the phone, but that is more difficult to test.
     
  2. jvincent_129

    jvincent_129 New Member

    Joined:
    Nov 24, 2010
    Messages:
    21
    Likes:
    0
    Location:
    Philippines
    RAM - 1024 B,

    thats my zilog z8F042A microcontroller....
     
  3. jvincent_129

    jvincent_129 New Member

    Joined:
    Nov 24, 2010
    Messages:
    21
    Likes:
    0
    Location:
    Philippines
    i want to programmed my micro to send sms for a predetermined time interval,

    say for every 5 minutes.... how do i do that?
     
  4. dave

    Dave New Member

    Joined:
    Jan 12, 1997
    Messages:
    -
    Likes:
    0


     
  5. jvincent_129

    jvincent_129 New Member

    Joined:
    Nov 24, 2010
    Messages:
    21
    Likes:
    0
    Location:
    Philippines

    would anyone pls help me how to send sms for every time interval...

    maybe for every 10 min...

    pls..........
     
  6. wannaBinventor

    wannaBinventor Member

    Joined:
    Jun 24, 2010
    Messages:
    214
    Likes:
    2
    Use one of the on board timers which I'm sure your uC has.
     
  7. jvincent_129

    jvincent_129 New Member

    Joined:
    Nov 24, 2010
    Messages:
    21
    Likes:
    0
    Location:
    Philippines
    is there any reference that i can read about regarding this topic? tnx a lot
     
  8. DirtyLude

    DirtyLude Well-Known Member

    Joined:
    Aug 5, 2003
    Messages:
    1,904
    Likes:
    56
    Location:
    Toronto, Canada
    Use google.
    If you want help with programming the Z8 Encore, try the yahoo groups mailing list for the Z8 Encore.
    It sounds like you have absolutely no experience programming this microcontroller at all. If that's the case, go through some basic experiments/exercises; lighting an LED, flashing intervals LED, basic UART communication...
    The datasheet is very thorough and describes all the hardware functions of the microcontroller. There is a number of example programs on the Zilog site that you can try to play with or modify.
     
  9. jvincent_129

    jvincent_129 New Member

    Joined:
    Nov 24, 2010
    Messages:
    21
    Likes:
    0
    Location:
    Philippines
    tnx, as of now i only have minimal experience on z8 microcontrollers, ill strive hard...
     
  10. wannaBinventor

    wannaBinventor Member

    Joined:
    Jun 24, 2010
    Messages:
    214
    Likes:
    2
    The datasheet will help a great deal.

    I'd say you are attempting something pretty difficult if you've never programmed these things before. If you have experience on other uC's, then it is just a matter of learning the similar features of this one. I'm having a feeling that you haven't done this before.

    Start by reading the datasheet! Come here and ask questions if you've read a section over and over but still don't understand. I don't think many people here work with those uC's, but we can still probably answer general theory questions.
     
  11. jvincent_129

    jvincent_129 New Member

    Joined:
    Nov 24, 2010
    Messages:
    21
    Likes:
    0
    Location:
    Philippines
    tnx for the advice, im gaining knowledge but still has a long way to go,

    how about using software loop delays instead of timers?

    which is better? tnx
     
  12. wannaBinventor

    wannaBinventor Member

    Joined:
    Jun 24, 2010
    Messages:
    214
    Likes:
    2
    Well Jvinecent:

    I normally would use a software loop instead of a timer for a very short delay. You could create a ten minute software loop, but your code won't really be able to do anything else while it's looping. This is different from the on board timers, which will operate in the background and can be programmed to interrupt anything else going on once they "overflow."
     
  13. jvincent_129

    jvincent_129 New Member

    Joined:
    Nov 24, 2010
    Messages:
    21
    Likes:
    0
    Location:
    Philippines
    ok, for the mean time i wanted to use software loop delay becoz i still dont know how

    to utilize the on-board timers,

    im still deciding on my message sending intervals, either for every 1 min or 2 mins

    my project is about monitoring and detection of forest fire... it sends a temp and

    humidity reading for a determined time interval.

    How would an exact 1min software loop delay source code look? for 2min?
     
  14. wannaBinventor

    wannaBinventor Member

    Joined:
    Jun 24, 2010
    Messages:
    214
    Likes:
    2
    Jvincent:

    I don't want to be discouraging to you. I really hate to do it, because I once had no knowledge and I still have a lot to learn.

    This entire GSM thing is something I'm just now about to dive in to, and I have been hard at this electronics stuff for 8 months. I started by reading two books. One was about a 900 page book covering everything from the fundamentals of Ohms law to digital circuitry. The other book was a couple hundred pages that gave lots of sample code for the PIC. In addition, I've had the advantage of programming with PICs and looking at LOTS of sample code, as the PIC is much more popular to hobbyist than the uC you are using. I've spent hours/days reading datasheets and I've made at least a hundred posts between this forum and others asking different (specific) questions. Maybe I'm a little slow in the head, but despite my "experience" I'd still be challenged for a solid weekend getting it up and running, and I feel fairly comfortable with the features of mid-range PICS (though not the enhanced ones, heh)

    What I'm saying here is that as boring as it seems, and as exciting as it is to just get into your project, it is an absolute necessity to put in the time to learn the basics. Quite frankly you can't expect to not know what a timer is and not no how to code your uC, and expect to get a GSM module to work. I wish you the best of luck in this, and I hope you succeed with it -- but learn some basics!
     
  15. jvincent_129

    jvincent_129 New Member

    Joined:
    Nov 24, 2010
    Messages:
    21
    Likes:
    0
    Location:
    Philippines
    ok.... hehehe time is against me.... deadline is fast approaching... ill do my best....

    wish me luck... also Good luck to u!!
     
  16. jvincent_129

    jvincent_129 New Member

    Joined:
    Nov 24, 2010
    Messages:
    21
    Likes:
    0
    Location:
    Philippines
    is it posible to have a 1 min software delay loop?
     
  17. jvincent_129

    jvincent_129 New Member

    Joined:
    Nov 24, 2010
    Messages:
    21
    Likes:
    0
    Location:
    Philippines

Share This Page