Real TIme Counter????

Go To Last Post
61 posts / 0 new

Pages

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I have a data sheet, I have no problem accessing it. I need help understanding the registers (I guess???), I don't know what you want me to do, figure it out myself, ask you to explain it to me????? I don't know something and I need help

Life Is Like A Bucket Of Chicken.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Ask a SPECIFIC question about an aspect you don't understand. You have the datasheet, we shouldn't have to explain the entire thing to you, when it's already written there.

Writing code is like having sex.... make one little mistake, and you're supporting it for life.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Read the register in Fig.3. Determine whether it shows the correct bits. Set the registers that you want from Fig.4.

Clock, Timer, Alarm Counter should all function correctly. If they do not function according to your settings from Fig.3 then power-cycle the chip.

I would be interested in seeing your actual value from Fig.3 that corresponds to your minutes not altering.

David.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

The problem, Taco, is that if you are not more specific than "understanding the registers" then the option for anyone trying to formulate an answer is to

EITHER copy the text from the data sheet verbatim, which of-course adds nothing of value.

OR sit down and write a lecture on how to use the PCF8583, which will take hours and involve a lot of work which might never be of use ultimately. Essentially it boils down yto figuring out all (or at least many) of the questions that could be asked about the PCF8535 and then finding that it was only a few of the questions/answers that did actually apply (at least in this thread). No-one wants to have their time wasted like that.

So, you need to be more specific in your questions, like "I have read the data-sheet and studied the figures, and I'm having problems understanding how the bit in the register works". (I just made those two names up, but you do realise that, don't you?)

If you end up finding that the thing you can say is "I don't know how to use the PCF8535 at all", and "I don't understand a single thing in the data sheet", then you have jumped onto something a bit over your current ability and need to start with something simpler. Sorry, but there's no other way about it.

It would also help you immensely if you said something about how you have studied the examples in C for an AVR and the PCF8535 that exists on The Web (You should study them even if they do not apply to your specific AVR.)

Besides, where did you get the impression that people hate to be shown code? What might be disliked is to be shown code with the accompanying "fix this for me", or the totally clueless "why is this not working?".

As of January 15, 2018, Site fix-up work has begun! Now do your part and report any bugs or deficiencies here

No guarantees, but if we don't report problems they won't get much of  a chance to be fixed! Details/discussions at link given just above.

 

"Some questions have no answers."[C Baird] "There comes a point where the spoon-feeding has to stop and the independent thinking has to start." [C Lawson] "There are always ways to disagree, without being disagreeable."[E Weddington] "Words represent concepts. Use the wrong words, communicate the wrong concept." [J Morin] "Persistence only goes so far if you set yourself up for failure." [Kartman]

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

FEE FY FOH FUMMM.....

Me smells someone wanting his work done by someone!!

Jim

I would rather attempt something great and fail, than attempt nothing and succeed - Fortune Cookie

 

"The critical shortage here is not stuff, but time." - Johan Ekdahl

 

"Step N is required before you can do step N+1!" - ka7ehk

 

"If you want a career with a known path - become an undertaker. Dead people don't sue!" - Kartman

"Why is there a "Highway to Hell" and only a "Stairway to Heaven"? A prediction of the expected traffic load?"  - Lee "theusch"

 

Speak sweetly. It makes your words easier to digest when at a later date you have to eat them ;-)  - Source Unknown

Please Read: Code-of-Conduct

Atmel Studio6.2/AS7, DipTrace, Quartus, MPLAB, RSLogix user

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Don't raise your blood pessure JohanEkdahl.

I haven't put a value in the control register.

Life Is Like A Bucket Of Chicken.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Why (yet agian) would someone pick a chip to use for a function, with no idea how to interface to it?

At least THIS time it is feasible for an AVR to talk to it.

Lee

You can put lipstick on a pig, but it is still a pig.

I've never met a pig I didn't like, as long as you have some salt and pepper.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Quote:

Don't raise your blood pessure JohanEkdahl.

Didn't raise my blood pressure. I was cool. Just tried to answer to you what you wherse asking about.

As of January 15, 2018, Site fix-up work has begun! Now do your part and report any bugs or deficiencies here

No guarantees, but if we don't report problems they won't get much of  a chance to be fixed! Details/discussions at link given just above.

 

"Some questions have no answers."[C Baird] "There comes a point where the spoon-feeding has to stop and the independent thinking has to start." [C Lawson] "There are always ways to disagree, without being disagreeable."[E Weddington] "Words represent concepts. Use the wrong words, communicate the wrong concept." [J Morin] "Persistence only goes so far if you set yourself up for failure." [Kartman]

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Taco_Bell wrote:
Don't raise your blood pessure JohanEkdahl.

I haven't put a value in the control register.

It is sad to see that you didn't care to listen to any of Johan's, David's or glitch's suggestions.

There are two things at successfully getting questions answered. The first is asking a meaningful, focused question. You failed on that one. The second part is to actually listen to the answers. You failed on that account, too.

It looks as if you want to abuse people as your personal servants which have to read your mind and fix any of your problems ASAP. You seem to think you are entitled to help without having to put any own effort into it. You act like a rich spoiled brat. Consider growing up and changing that behavior.

Stealing Proteus doesn't make you an engineer.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Quote:
I haven't put a value in the control register.

Which is why I am interested in what the current value is. The chip defaults to a 0b00000000 in that register at power-up.

Taco has made 61 posts, so is hardly a "new user". He has received very specific advice.

David.

Pages