STM32F103C8T6 and DS1302
.
I have an STM32F103C8T6 chipped minimum dev board and a ds1302 rtc module. What I'm trying to do is to hook these two up to show me some time.
What did i do so far?
- 1. Connected F103 PA_2 and PA_3 pins for SerialPC, to how me the output. Code works fine for that.
- 2. Connected ds1302 to PA_5-6-7 pins(5=CE/RST,6=DATAI/O,7=SCLK), and in initial run power 5V and GND. (After running the program and setting the UNIXTIMESTAMP, deconnected PA_5, VCC and GND from DS1302)
- 3. The code I've been using gave me the following output, viewable in TeraTerm or putty: /media/uploads/csokanandras/ds1302.tty Notice everytime I press the RESET button on F103 there's always another output coming out in the terminal.
1 comment on STM32F103C8T6 and DS1302:
Please log in to post comments.
After consulting with a "fellow mbedian", the problem just seen before happened because of my faulty wire connections. Like, the DS1302 was connected only to 3.3V pin and the serial(rx,tx) to 5V pin. This caused the RTC module to function faultly, also the program code wasn't completely right from my side.
Also, a breadboard is being advised to use, since my wires were moving like leave on the pins, possibly causing faulty voltages.