generating a clock for sck on other device?

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 5.
To post in this forum you must have a registered copy of Flowcode 5 or higher.

Moderator: Benj

Post Reply
Tony Brown
Posts: 81
Joined: Wed Jun 20, 2012 9:59 pm
Has thanked: 36 times
Been thanked: 5 times
Contact:

generating a clock for sck on other device?

Post by Tony Brown »

Hi,

I am trying to design a circuit that will be able to erase the memory of an AT45DB321E eeprom device without removing it from the PCB. The only problem I am having difficulty with is how do I generate a clock pulse for the devices SCK pin?

I've never done this before so any help will be most appreciated.

Regards

Tony

kersing
Valued Contributor
Valued Contributor
Posts: 2045
Joined: Wed Aug 27, 2008 10:31 pm
Location: Netherlands
Has thanked: 553 times
Been thanked: 1081 times
Contact:

Re: generating a clock for sck on other device?

Post by kersing »

This device uses a (compatible) SPI interface, if you use the SPI interface of your controller (and the SPI component) the clock will be generated for you.
“Integrity is doing the right thing, even when no one is watching.”

― C.S. Lewis

Tony Brown
Posts: 81
Joined: Wed Jun 20, 2012 9:59 pm
Has thanked: 36 times
Been thanked: 5 times
Contact:

Re: generating a clock for sck on other device?

Post by Tony Brown »

Thanks for that, I've been looking around for a sample flowcode program for guidance but as of yet cant find one.

Tony Brown
Posts: 81
Joined: Wed Jun 20, 2012 9:59 pm
Has thanked: 36 times
Been thanked: 5 times
Contact:

Re: generating a clock for sck on other device?

Post by Tony Brown »

How do I enter "C7H" as an expression?

kersing
Valued Contributor
Valued Contributor
Posts: 2045
Joined: Wed Aug 27, 2008 10:31 pm
Location: Netherlands
Has thanked: 553 times
Been thanked: 1081 times
Contact:

Re: generating a clock for sck on other device?

Post by kersing »

Check this blog post for example code.

For hex values use 0xnn, not nnH
“Integrity is doing the right thing, even when no one is watching.”

― C.S. Lewis

Post Reply