Jump to content

Projectred Fabrication: Difference between revisions

no edit summary
mNo edit summary
No edit summary
Line 55:
Each I/O can be set to input, output or inout to specify or restrict the interaction with the outside world. I/O options can be changed by rclicking on them. For analog I/O, the power level is referred to as "frequency" and represented in HEX values (0xa = 10, 0xb = 11, etc.).
 
Each edge can only be a single I/O type and is represented graphically distinct on the final IC. Unused edges have no connectivity on the final IC.
 
=== Examples ===
 
==== RS latch ====
The RS latch is a common usage in power automation. It can be made into a single block with PrF IC very easily:
[[File:RS latch example.png|none|thumb|600x600px|RS latch example]]
 
* Put 3 analog I/O's on the left and set them to input and freq 0x0, 0x1 and 0x2 respectively. Representing a redstone input signal with strength 0,1,2
* Put 3 analog I/O's on the right and set them to input and freq 0xd, 0xe and 0xf respectively. Representing a redstone input signal with strength 13,14,15
* put an RS latch in the middle with the torch pointing up.
* a simple I/O set to output on the top
* Wire it all up. By connecting the 3 left I/O's and the right I/O's it acts like an OR statement. 0 OR 1 OR 2 will trigger the left side. 13,14,15 will trigger right side
 
When placed in the world it will only start working when the right-hand side condition has been met at least once. This usually corresponds with a full energy buffer if used with the LSC, for example. It can be forced by putting a lever on the input side and switching it on. Next time the buffer is drained to redstone power level 2 (or lower) the signal will turn on. It will keep the on state until redstone power level 13 or higher is reached.
 
NB1: when combined with an LSC or other buffer, power level 0 and 15 are never reached in practice (it's never perfectly full or empty). It is useful to include them anyway so the state can be triggered with a lever and/or act as a digital RS latch when connected to a "digital" (simple) redstone signal.
 
NB2: Technically there is no need to include the value 0x1 and 0xe in this design (or even 0x0 and 0xf , but see NB1). I mainly include them here to show the concept
13

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.