cancel
Showing results for 
Search instead for 
Did you mean: 

Square wave output M48T201V

MATRIX7878
Associate III

Hello,

 

     I am trying to test out my TIMEKEEPERS square wave output.  I set my frequency, then enable.  However, I do not get a signal out.  The SNAPHAT is attached to the IC, so I am not sure what is wrong.  Do I need to read after every write, restart the crystal, something else?  If anybody knows what to do, I appreciate some guidance.

 

Thank you

1 ACCEPTED SOLUTION

Accepted Solutions

>>It has been over a month and I have not received any replies

The pool here is pretty shallow. You're swimming by yourself. It's a 15 year old part design, the staff that designed / supported this are likely doing other things these days.

 

TM4C129EXL ? The code could probably do with using tables. I'm not sufficiently familar with the board design or MCU to confirm if the pin usage, or timing, nor what you're actually reading/writing into the MT48T201V.

You're not providing a dump of any of the RTC/Timing registers/memory locations

You'd need to select a frequency for the output RS3-RS0 (0x7FFF0), and enable via SQWE (0x7FFF6). Check you can read/write the registers successfully.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..

View solution in original post

7 REPLIES 7
MATRIX7878
Associate III

Hello,

 

     It has been over a month and I have not received any replies.  I am still having the same issue.  Could it be my crystal?  Or my code?

 

Thank you.

Hi,

I can only say for myself: I have no idea, what you doing and what not working as you expect.

Timekeeper Snapchat or something...

If you explain what CPU, board and program you use, then what it should do and then what not working.... maybe some answers coming.

If you feel a post has answered your question, please click "Accept as Solution".

Hello,

 

     What I really need is an example of how to use the square wave output.  My code is attached so you can see.  I am using a TM4C129EXL.  The code 1st tests the SRAM chip and then sends out a square wave output.  I am not sure if my code is wrong, or if the crystal does not work.

 

Thank you

>>It has been over a month and I have not received any replies

The pool here is pretty shallow. You're swimming by yourself. It's a 15 year old part design, the staff that designed / supported this are likely doing other things these days.

 

TM4C129EXL ? The code could probably do with using tables. I'm not sufficiently familar with the board design or MCU to confirm if the pin usage, or timing, nor what you're actually reading/writing into the MT48T201V.

You're not providing a dump of any of the RTC/Timing registers/memory locations

You'd need to select a frequency for the output RS3-RS0 (0x7FFF0), and enable via SQWE (0x7FFF6). Check you can read/write the registers successfully.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
MATRIX7878
Associate III

Hello,

 

     Oh.  That makes sense.  I will manage my expectations.

 

     Yes, that is my main microcontroller.  I am not sure what tables I could use.  I create an array of addresses from 0x7FFF0 to 0x7FFFF.  I am writing the address and then I write the data.  I know the pins are right since I can write and read to the SRAM.

 

     I cannot get a dump of the SRAM chip itself and getting a dump of the program is a challenge in and of itself.  I attached a screenshot of the active memory area.  I'm not sure if you will get much out of it though.  If you have any more detail about what you need, I'll send that to you.

 

     I do, do that.  I start off by writing 0x01 to 0x7FFF0 and then enable it by writing 0x40 to 0x7FFF6.  I tried to do a logic analyzer of the board, but the data gets corrupted.  The logic analyzer somehow messes the signals up.

 

If you need anything else, or have a code example, I would appreciate it.

 

Thank you

Hello,

 

     I do not know why it took me this long to understand what you were saying.  I can read from the registers I write to.  So I can read what values are being sent to 0x7FFF6 and 0x7FFF0.  It looks like both are 0x00.  Even though I can read and write to the SRAM, I cannot write to those addresses.  I will fix that.

 

Sorry it took me so long to understand

MATRIX7878
Associate III

Hello,

 

     I figured out my problem.  I forgot to turn the data pins back to write to write to the chip.  Wow I can be *** at times.  Thank you all for your help.