Michael Ossmann
ca04d7c04b
activated CLKOUT (always on) and CLKIN (automatically used when detected)
2014-03-14 21:28:13 -06:00
Jared Boone
7f35ceaff2
Set Si5351C CLK7 output to drive LPC GP_CLKIN at 40MHz, so that activity (e.g. audio) on the LPC can be synchronized with the baseband sample rate.
2013-12-31 20:09:44 -08:00
Jared Boone
0ddb4cb7f2
Configure LPC43xx for GP_CLKIN input.
2013-12-31 20:07:11 -08:00
Jared Boone
1bec883f80
Add baseband sampling frequencies useful for 48kHz audio output.
2013-12-31 20:05:26 -08:00
Jared Boone
5468a01a9b
Forgot to include rf_path.h now that its pin setup is called from hackrf_core.
2013-11-21 10:23:53 -08:00
Jared Boone
b285b91e4c
Merge remote-tracking branch 'mossmann/master' into jboone_refactor_20130906
...
Conflicts:
firmware/common/hackrf_core.h
firmware/common/rffc5071.c
2013-11-20 18:43:40 -08:00
Jared Boone
e3f9e204c1
Relocate SGPIO pin configuration -- it only needs to be done once.
2013-11-20 13:22:19 -08:00
Michael Ossmann
5b14636c2c
initial firmware support for HackRF One
2013-11-19 10:01:26 -07:00
Jared Boone
9856ea3d14
Changes due to CGU header API changes.
2013-11-15 11:41:20 -08:00
Jared Boone
76704be008
Remove unused local variable causing a compiler warning.
2013-09-17 22:21:11 -07:00
Jared Boone
d76d72665e
Adjusted cpu_clock_pll1_low_speed() to operate at 48MHz, as per several comments with the code. The actual MSEL value was previously selecting 84MHz.
2013-09-04 16:23:32 -07:00
Jared Boone
237bf6ecdb
Pulled redundant PLL1 initialization code from cpu_clock_init(). Called cpu_clock_pll1_low_speed() instead.
2013-09-04 16:22:41 -07:00
TitanMKD
24ed48d93a
Fix for "issues/62 fix PLL1 overclock bug" see hackrf_core.c -> cpu_clock_init()
...
Fix for "issues/78 startup current too high" see hackrf_core.c -> New functions cpu_clock_pll1_low_speed()/cpu_clock_pll1_max_speed() & hackrf_usb.c to switch low_speed/max_speed.
2013-08-28 22:01:57 +02:00
Sylvain Munaut
f0c7fe66f1
firmware: New fractional sample rate algorithm and usb command
...
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2013-06-09 00:08:18 +02:00
Hoernchen
1e326997ed
firmware: enable int mode if div is even integer
...
to improve jitter performance
2013-06-07 23:10:35 +02:00
Hoernchen
1925649a01
firmware: fractional sample rates
2013-06-07 14:29:14 +02:00
Hoernchen
b6a0b09b1d
firmware: remove 5mhz option
2013-05-29 17:47:02 +02:00
Hoernchen
7f6a730c6e
si clock for the lpc
2013-05-29 17:12:06 +02:00
Michael Ossmann
60d21a3310
commenting out CGU_PLL1_CTRL_DIRECT=1 because it breaks boot from spifi
2013-05-11 18:55:00 -06:00
Jared Boone
1723cd12a1
Oops, read PLL1 documentation again. Looks like FBSEL=1 is for "normal operation". So include that, but use DIRECT=1 to skip the PSEL divider (which would prevent us producing 204MHz from an in-spec PLL frequency).
2013-05-11 12:25:54 -07:00
Jared Boone
e065cdfe20
Slowed down edges on LED and power enable signals -- they don't need to be fast, and this *might* have a negligible but positive effect on noise.
2013-05-11 12:13:00 -07:00
Jared Boone
d9884af8b8
PLL1 was misconfigured to run at 408MHz (way out of spec) instead of 204MHz. Corrected this by using DIRECT=1 instead of FBSEL=1.
2013-05-11 12:11:37 -07:00
Jared Boone
a4a2a3d6ba
Added SCU pinmux data for USB LEDs, configured USB LEDs to be outputs (not float).
2013-05-11 08:09:07 -07:00
TitanMKD
d509489fff
ssp1_set_mode_max2837()/void ssp1_set_mode_max5864(void) SPI speed updated to 4.857MHz instead of 0.0498MHz
...
To do test it to check there is no problem.
2013-03-20 22:20:47 +01:00
Michael Ossmann
1a2f871520
moved set_freq out of hackrf_core to facilitate switchctrl fixes
2013-03-07 17:35:48 -07:00
Michael Ossmann
052d842f36
temporary fix for gpo/switchctrl. only works for TX
2013-03-07 16:56:44 -07:00
TitanMKD
e3784c886e
set_freq for firmware & host. tested basicly checking with debugger value mhz/hz from host to fw.
2013-03-07 23:24:00 +01:00
TitanMKD
e2c05fbfe2
Draft in progress (not tested at all) set_freq().
2013-02-26 00:17:18 +01:00
TitanMKD
d46a59fba3
Fix for LPC4330 MCU frequency to be set to 204MHz instead of 102MHz.
2012-11-26 23:41:13 +01:00
Jared Boone
549c943979
Add USB control of LPF baseband filter.
...
Add max2837_set_lpf_bandwidth() function to choose available LPF filter bandwidth based on bandwidth in Hz.
Change configuration of MAX2837 to set LPF_EN and FT at max2837_setup(), not in max2837_rx() or max2837_tx() (which was overriding prior filter configuration).
2012-10-17 17:00:36 -07:00
Jared Boone
9c4a0e94b0
Factor out sample_rate_set() from cpu_clock_init().
...
Implement switching between several supported sampling rates for Jellybean and Jawbreaker.
Commit bits of the Si5351C USB request support that I apparently missed in a prior commit.
2012-10-17 16:57:26 -07:00
Jared Boone
7fdfde9314
Make use of i2c0_init() argument to control duty cycle, when APB1 clock shifts from IRC (~12MHz) to PLL1 (204MHz).
2012-10-17 11:48:35 -07:00
Jared Boone
63b1a25979
Consolidate a few clock setup tasks that repeat among many projects into cpu_clock_init().
2012-10-17 11:45:30 -07:00
Jared Boone
685f5cdd6e
More detail in comments about Jellybean/Lemondrop clock destinations.
2012-10-10 11:51:06 -07:00
Jared Boone
4f9a5a1ba4
Fix-ups to copyrights -- missing e-mail address and inconsistent formatting.
2012-10-06 19:14:55 -07:00
Jared Boone
a975fbc577
Replaced apparently incorrect PLL0USB MDIV and NP_DIV values with values straight out of the User Manual's table 94.
2012-09-27 19:29:43 -07:00
Jared Boone
aaaf14819a
Move PLL1/M4 CLK up to full speed (204MHz) in two steps, according to UM chapter 11.2.1.
2012-09-27 18:58:00 -07:00
Jared Boone
776c502628
More tweaks related to CGU #define changes.
2012-09-27 17:55:54 -07:00
Jared Boone
416cdc6b20
Added missing hackrf_core pin_setup() and enable_1v8_power(), which have somehow gone missing.
2012-09-27 16:26:47 -07:00
Michael Ossmann
425a384832
Jawbreaker LPC crystal oscillator startup
2012-09-20 10:53:07 -06:00
Michael Ossmann
2c813ec41e
Jawbreaker clock generator configuration
2012-09-19 13:43:16 -06:00
Michael Ossmann
7d0c572569
Jawbreaker mixer serial interface support
2012-09-19 11:55:24 -06:00
Michael Ossmann
344a2f2a83
more clock generator config fixes
2012-08-23 12:59:49 -06:00
Jared Boone
9a53fd3a07
New CPLD .svf.
...
Change Si5351C CLK2 to 10MHz.
Keep CLK3 at 20MHz, but not inverted.
Source SGPIO8 from P1_12 instead of P9_6. (See "SGPIO Clock Routing") modification at https://github.com/mossmann/hackrf/wiki/Future-Hardware-Modifications ).
2012-06-15 16:12:35 -07:00
Jared Boone
f08fc3bb51
Pulled SSP1 configuration for MAX2837 into hackrf_core. Added SSP1 configuration for MAX5864. Added #defines for manipulating CS of both MAX parts. Changed a couple of #define names to be consistent with other names. Added explicit manipulation of MAX2837 CS via GPIO.
2012-06-14 13:06:10 -07:00
Michael Ossmann
ad080a355a
pull request #10 , resolved conflicts
2012-06-13 21:21:34 -06:00
Jared Boone
61b7b76912
OOPS. Missed changes from clock reconfiguration two commits (and five minutes) ago.
2012-06-13 17:58:14 -07:00
Michael Ossmann
056ddd0601
r divider configurable, added CLK5 for mixer reference input
2012-06-13 16:02:40 -06:00
TitanMKD
352b82f641
Fixed Clock Init (to be tested on other board).
2012-06-08 02:24:05 +02:00
Michael Ossmann
9a7219eb4d
removed PLL1 stages as they no longer seem to be necessary since the power-down fix
2012-06-07 13:40:59 -06:00