mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-19 21:03:48 -07:00
CHG: FeliCa and 14b/15 enhancements. or it should be atleast. Until it gets tested..
This commit is contained in:
parent
52eaa3dfe6
commit
c2444a885b
3 changed files with 14 additions and 2 deletions
BIN
fpga/fpga_hf.bit
BIN
fpga/fpga_hf.bit
Binary file not shown.
BIN
fpga/fpga_lf.bit
BIN
fpga/fpga_lf.bit
Binary file not shown.
|
@ -12,7 +12,7 @@ module hi_read_tx(
|
||||||
ssp_frame, ssp_din, ssp_dout, ssp_clk,
|
ssp_frame, ssp_din, ssp_dout, ssp_clk,
|
||||||
cross_hi, cross_lo,
|
cross_hi, cross_lo,
|
||||||
dbg,
|
dbg,
|
||||||
shallow_modulation
|
shallow_modulation, speed, power
|
||||||
);
|
);
|
||||||
input pck0, ck_1356meg, ck_1356megb;
|
input pck0, ck_1356meg, ck_1356megb;
|
||||||
output pwr_lo, pwr_hi, pwr_oe1, pwr_oe2, pwr_oe3, pwr_oe4;
|
output pwr_lo, pwr_hi, pwr_oe1, pwr_oe2, pwr_oe3, pwr_oe4;
|
||||||
|
@ -23,6 +23,8 @@ module hi_read_tx(
|
||||||
input cross_hi, cross_lo;
|
input cross_hi, cross_lo;
|
||||||
output dbg;
|
output dbg;
|
||||||
input shallow_modulation;
|
input shallow_modulation;
|
||||||
|
input [1:0] speed;
|
||||||
|
input power;
|
||||||
|
|
||||||
// low frequency outputs, not relevant
|
// low frequency outputs, not relevant
|
||||||
assign pwr_lo = 1'b0;
|
assign pwr_lo = 1'b0;
|
||||||
|
@ -36,6 +38,8 @@ reg pwr_oe3;
|
||||||
reg pwr_oe4;
|
reg pwr_oe4;
|
||||||
|
|
||||||
always @(ck_1356megb or ssp_dout or shallow_modulation)
|
always @(ck_1356megb or ssp_dout or shallow_modulation)
|
||||||
|
begin
|
||||||
|
if (power)
|
||||||
begin
|
begin
|
||||||
if(shallow_modulation)
|
if(shallow_modulation)
|
||||||
begin
|
begin
|
||||||
|
@ -52,6 +56,14 @@ begin
|
||||||
pwr_oe4 <= 1'b0;
|
pwr_oe4 <= 1'b0;
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
else
|
||||||
|
begin
|
||||||
|
pwr_hi <= 1'b0;
|
||||||
|
pwr_oe1 <= 1'b0;
|
||||||
|
pwr_oe3 <= 1'b0;
|
||||||
|
pwr_oe4 <= ~ssp_dout;
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
|
||||||
// Then just divide the 13.56 MHz clock down to produce appropriate clocks
|
// Then just divide the 13.56 MHz clock down to produce appropriate clocks
|
||||||
|
@ -62,7 +74,7 @@ reg [6:0] hi_div_by_128;
|
||||||
always @(posedge ck_1356meg)
|
always @(posedge ck_1356meg)
|
||||||
hi_div_by_128 <= hi_div_by_128 + 1;
|
hi_div_by_128 <= hi_div_by_128 + 1;
|
||||||
|
|
||||||
assign ssp_clk = hi_div_by_128[6];
|
assign ssp_clk = speed[1]? (speed[0]? hi_div_by_128[3]: hi_div_by_128[4]) : (speed[0]? hi_div_by_128[5]: hi_div_by_128[6]);
|
||||||
|
|
||||||
reg [2:0] hi_byte_div;
|
reg [2:0] hi_byte_div;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue