Page 1 of 1

generating a clock for sck on other device?

Posted: Sun Sep 03, 2017 3:58 pm
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

Re: generating a clock for sck on other device?

Posted: Sun Sep 03, 2017 4:47 pm
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.

Re: generating a clock for sck on other device?

Posted: Sun Sep 03, 2017 6:15 pm
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.

Re: generating a clock for sck on other device?

Posted: Sun Sep 03, 2017 6:37 pm
by Tony Brown
How do I enter "C7H" as an expression?

Re: generating a clock for sck on other device?

Posted: Sun Sep 03, 2017 11:03 pm
by kersing
Check this blog post for example code.

For hex values use 0xnn, not nnH