Previous 199869 Revisions Next

r18397 Wednesday 10th October, 2012 at 00:18:15 UTC by hap
fix strobe timer
[src/mame/drivers]mw8080bw.c
[src/mame/layout]spcenctr.lay

trunk/src/mame/layout/spcenctr.lay
r18396r18397
2121
2222
2323<!-- NOTE: color overlay is known, -->
24<!-- but can as of yet (10-2012) not be created with internal .lay -->
24<!-- but as of yet (10-2012) can't be created with internal .lay -->
2525
2626   <view name="Lamps Reflection">
2727
r18396r18397
3232      </screen>
3333
3434<!-- lamp and strobe reflect onto the inner bezel (and screen) -->
35<!-- NOTE: artwork system can't keep up with the strobe high frequency -->
3536      <bezel name="LAMP" element="lamp_red">
3637         <bounds left="0" top="0" right="376" bottom="300" />
3738         <color alpha="0.2" />
trunk/src/mame/drivers/mw8080bw.c
r18396r18397
20992099 *************************************/
21002100
21012101#define SPCENCTR_STROBE_FREQ      (9.00)  /* Hz - calculated from the 555 timer */
2102#define SPCENCTR_STROBE_DUTY_CYCLE   (95)   /* % */
2102#define SPCENCTR_STROBE_DUTY_CYCLE   (95.0)   /* % */
21032103
21042104
21052105TIMER_DEVICE_CALLBACK_MEMBER(mw8080bw_state::spcenctr_strobe_timer_callback)
r18396r18397
22472247   MCFG_TIMER_PARAM(TRUE)   /* indicates strobe ON */
22482248
22492249   MCFG_TIMER_DRIVER_ADD_PERIODIC("strobeoff", mw8080bw_state, spcenctr_strobe_timer_callback, attotime::from_hz(SPCENCTR_STROBE_FREQ))
2250   MCFG_TIMER_START_DELAY(attotime::from_hz(SPCENCTR_STROBE_FREQ * 100 / SPCENCTR_STROBE_DUTY_CYCLE))
2250   MCFG_TIMER_START_DELAY(attotime::from_hz((SPCENCTR_STROBE_FREQ * 100) * (SPCENCTR_STROBE_DUTY_CYCLE / 100)))
22512251   MCFG_TIMER_PARAM(FALSE)   /* indicates strobe OFF */
22522252
22532253   /* video hardware */

Previous 199869 Revisions Next


© 1997-2024 The MAME Team