Search found 15 matches

by FIREWALL
Mon Nov 25, 2013 8:02 pm
Forum: Other Hardware interfaces
Topic: SuperPro 12mhz XTAL Registers.
Replies: 2
Views: 15013

Re: SuperPro 12mhz XTAL Registers.

Thanks! I got my SuperPro switched over to the XTAL now.

-Dan
by FIREWALL
Sat Nov 23, 2013 5:39 pm
Forum: Other Hardware interfaces
Topic: SuperPro 12mhz XTAL Registers.
Replies: 2
Views: 15013

SuperPro 12mhz XTAL Registers.

I finally got around to adding a 12mhz XTAL and load caps to one of my Super-Pros. Can you tell me the proper register values I have to set to run the SuperPro at 100mhz using the 12mhz Xtal I added? I am programming in C and I am looking at system_LPC175x6x.c but I am not sure what to change. -Dan
by FIREWALL
Tue Nov 05, 2013 2:47 pm
Forum: Software issues
Topic: LPC812 BASIC - PWM Error
Replies: 8
Views: 24908

Re: LPC812 BASIC - PWM Error

So, After looking at the PWM code (instead of just assuming I knew what the code was doing). I realized that I was trying to use PWM wrong. I wanted to hook up a Servo and I saw the PWM function and thought "Perfect, I don't even have to write any code!" I thought that the milliseconds parameter was...
by FIREWALL
Mon Nov 04, 2013 11:16 pm
Forum: Software issues
Topic: LPC812 BASIC - PWM Error
Replies: 8
Views: 24908

Re: LPC812 BASIC - PWM Error

I thought that the PWM in PULSE.bas was bitbanged as well? Why is it that the TIMER seems to function fine in I2C.bas but not in PULSE.bas? PWM Sub from PULSE.bas ' on pin for time (msec) do bit-banged PWM of duty cycle (0-255) SUB PWM (pin, duty, timeperiod) DIM i as INTEGER DIM start AS INTEGER OU...
by FIREWALL
Mon Nov 04, 2013 9:53 pm
Forum: Software issues
Topic: LPC812 BASIC - PWM Error
Replies: 8
Views: 24908

Re: LPC812 BASIC - PWM Error

Odd... I have I2C working on the LPC812 using I2C.bas and that appears to use the same TIMER as PWM. Would you expect I2C communications to work with the LPC812? I2C Snippet SUB I2Cwait dim start as integer start = TIMER while (TIMER - start) < I2CwaitTime loop END SUB PWM Snippet while ((TIMER - st...
by FIREWALL
Mon Nov 04, 2013 4:24 pm
Forum: Software issues
Topic: LPC812 BASIC - PWM Error
Replies: 8
Views: 24908

LPC812 BASIC - PWM Error

I am having trouble getting the software PWM to work on the LPC812 BASICchip. Using the code below, no matter what value I pass in for 'milliseconds' the period of the PWM out is 176 microseconds (see attached logic analyzer output). Changing the duty work fines but the period seems to be always 'lo...
by FIREWALL
Sat Nov 02, 2013 11:02 am
Forum: Software issues
Topic: LPC812 BASIC breakout - CPU Define
Replies: 4
Views: 16122

Re: LPC812 BASIC breakout - CPU Define

Yes, indeed LPC0812 is defined. However the following files are then erroneously looking for LPC812 (not LPC0812) to be defined: BASIClib\CORIDIUM_PCB.bas BASIClib\COUNTER.bas BASIClib\HWPWM8.bas BASIClib\ONEWIRE.bas BASIClib\RTC.bas Examples\GPIO_INT8.bas Examples\MRTIMER.bas Examples\PORT-RD.bas E...
by FIREWALL
Sat Nov 02, 2013 2:37 am
Forum: Software issues
Topic: LPC812 BASIC breakout - CPU Define
Replies: 4
Views: 16122

LPC812 BASIC breakout - CPU Define

I have been playing around with the latest version of the BASICtools and I noticed that LPC812 is not being auto defined by the pre-compiler the way LPC1756 gets defined for the SuperPro. Here is where I am seeing the error. If I add: #elif defined LPC812 #define LED_PIN 7 to the top of BLINKY.bas t...
by FIREWALL
Thu Oct 24, 2013 5:42 pm
Forum: SPI and I2C
Topic: Wii Nunchuck Over I2C issues
Replies: 7
Views: 51722

Re: Wii Nunchuck Over I2C issues

I removed SET_SCL_LOW; SET_SDA_LOW; Last night (forgot to update forum post). That does solve the problem of start signal, etc not being generated properly. However, Now the stop signal is not being generated properly. I will upload screen caps from my logic analyzer later tonight.

-Dan
by FIREWALL
Thu Oct 24, 2013 12:59 am
Forum: SPI and I2C
Topic: Wii Nunchuck Over I2C issues
Replies: 7
Views: 51722

Re: Wii Nunchuck Over I2C issues

I decided to use P0.0 and P0.1 . I tested the pins using INPUTx, OUTPUTx, LOWx, and INx, and the macros worked propperly. I decided to take a look at the code that was doing the bit-banging to try and understand what was happening. I now have a question about the i2c_start function in cor_bitbang.c ...