mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-17 08:40:52 +00:00
slow down toggle rate on i2c so it is compatible with slow pullups
the strict verilog model has weak pull-ups which model the "slowness" of the rise with an extended Z-condition that takes 3us to pull up to a solid 1.
This commit is contained in:
parent
861b7ae3ff
commit
a3619618d0
1 changed files with 1 additions and 1 deletions
|
|
@ -22,7 +22,7 @@ pub fn i2c_test() -> usize {
|
|||
// configure & run the 0th machine
|
||||
// 400kHz clock -> 100kHz toggle rate = 0x7D0_0000 @ 800MHz rate FCLK
|
||||
// 1600kHz clock -> 400kHz toggle rate = 0x1F4_0000 @ 800MHz rate FCLK
|
||||
bio_ss.bio.wo(utra::bio_bdma::SFR_QDIV0, 0x1F4_0000);
|
||||
bio_ss.bio.wo(utra::bio_bdma::SFR_QDIV0, 0x7D0_0000);
|
||||
|
||||
// clear all events
|
||||
bio_ss.bio.wfo(utra::bio_bdma::SFR_EVENT_CLR_SFR_EVENT_CLR, 0xFFFF_FF);
|
||||
|
|
|
|||
Loading…
Reference in a new issue