URL
https://opencores.org/ocsvn/ssbcc/ssbcc/trunk
[/] [ssbcc/] [trunk/] [example/] [i2c/] [lib_i2c.s] - Diff between revs 5 and 11
Go to most recent revision |
Show entire file |
Details |
Blame |
View Log
Rev 5 |
Rev 11 |
Line 36... |
Line 36... |
; 2 clock cycles to return
|
; 2 clock cycles to return
|
; 9 TOTAL
|
; 9 TOTAL
|
; Add 2 to ensure rounding up when evaluting the integer fraction.
|
; Add 2 to ensure rounding up when evaluting the integer fraction.
|
; The loop is 3 clock cycles per iteration
|
; The loop is 3 clock cycles per iteration
|
.IFNDEF C_I2C_QUARTER_CYCLE
|
.IFNDEF C_I2C_QUARTER_CYCLE
|
.constant C_I2C_QUARTER_CYCLE ${(63-9+2)/3}
|
.constant C_I2C_QUARTER_CYCLE ${max(1,(63-9+2)/3)}
|
.ENDIF
|
.ENDIF
|
|
|
; ( - )
|
; ( - )
|
.function i2c_send_start
|
.function i2c_send_start
|
0 .outport(O_SDA)
|
0 .outport(O_SDA)
|
© copyright 1999-2025
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.